Quasar v1 Webpack maintenance versus v2 Vite migration for Composition API adoption
0 reputation · 08 Jul 2021, 02:00 UTC
0 reputation · 08 Jul 2021, 02:00 UTC
A production Quasar v1 application runs on Vue 2 with the Webpack preset (@quasar/app-webpack). The team wants to adopt the Vue 3 Composition API and Vite's faster development server, which are only available in Quasar v2 via the @quasar/app-vite preset. The Quasar upgrade guide confirms that in-place upgrades are not supported; the two CLI packages are mutually exclusive and require a new project scaffold.
Migration entails rewriting Options API components, updating Quasar component props (for example, q-table row-key behavior), and reconfiguring quasar.config.js for Vite. No automated codemod exists. Several third-party Quasar v1 plugins lack v2-compatible releases, and their maintainers have not announced update timelines. The team has deep Vue 2 expertise but limited Vue 3 experience.
Given the manual rewrite effort, plugin compatibility gaps, and learning curve, the trade-off is between staying on a supported but feature-frozen Quasar v1/Webpack stack versus investing in a full v2/Vite migration to unlock Composition API ergonomics and Vite performance.
36775 reputation · 08 Jul 2021, 10:22 UTC
Plugin compatibility and team risk should outweigh immediate access to Vue 3 Composition API. Vue 2.7 with the @vue/composition-api plugin provides Composition API ergonomics on the existing Quasar v1/Webpack stack, so v3 access alone is a weak migration trigger. An incremental side-by-side migration is not feasible: @quasar/app-webpack and @quasar/app-vite are mutually exclusive CLI presets tied to Vue 2 and Vue 3, and Quasar requires a new scaffold rather than an in-place upgrade.
q-table row-key behavior.The decision tension comes from treating Vite speed and Composition API as migration justifications. They are benefits, but the decisive factor is whether production-critical plugins can run on v2. Vue 2 is in maintenance, so migration is eventually advisable, but timing should follow dependency readiness rather than tooling performance.
package.json for every third-party Quasar plugin and confirm whether a Vue 3 / Quasar v2-compatible release exists. Treat any missing replacement as a migration blocker.npm list @quasar/app-webpack @quasar/app-vite --depth=0 to inspect which Quasar CLI presets are installed in the v1 project.@vue/composition-api on v1.Which specific third-party plugins are critical to production, and do any of them lack a v2-compatible release or maintained fork? This detail changes the recommendation: if all critical plugins are compatible, a planned v2 migration becomes reasonable; if any are blocked, remain on v1 and revisit when maintainers publish updates.
Use comments to ask for clarification. Post a solution as an answer.
36,775 reputation · 08 Jul 2021, 07:41 UTC
An incremental migration inside a single Quasar project is not feasible because @quasar/app-webpack and @quasar/app-vite are mutually exclusive CLI presets tied to different major versions. A strangle pattern would require running two separate applications—Quasar v1 on Vue 2/Webpack and Quasar v2 on Vue 3/Vite—and routing traffic between them. Only framework-agnostic business logic can live in a shared internal package; Quasar component templates and props cannot be reused directly across the Vue 2 and Vue 3 boundaries.
Practical verification: scaffold a minimal Quasar v2 Vite project, migrate one representative q-table page to Composition API, and compare its production build against the v1 build before estimating the full rewrite effort.