github quasarframework/quasar @quasar/vite-plugin-v2.0.1

11 hours ago

Changes

  • fix(vite-plugin): treeshaking with custom Vite modes -> production builds started with a custom mode name (vite build --mode qa, --mode staging, ...) treeshake Quasar imports again. The gate compared Vite's mode against production, but the mode is only an env-file selector, so any custom name silently disabled treeshaking and left bare quasar imports in the production bundle (+22kb min with current quasar, far more on older versions). It now follows isProduction / NODE_ENV, the same way Vite and Vue decide the build flavor; dev serve and Vitest runs are unchanged (#17267)
  • fix(vite-plugin): "untransformable quasar import" warnings -> no more false positives on TypeScript and JSX sources. Those files could not be parsed and fell back to trusting a plain textual pre-filter, so a quasar import shape written inside a string (a documentation snippet, for instance) was reported as a residual import. Sources are now parsed with their actual dialect, and TS type-only imports/exports from quasar -- erased at transpile time -- are no longer flagged either. Internally this also moves off Vite 8's deprecated parseAst onto its OXC-backed parser.

Donations

Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following:

Don't miss a new quasar release

NewReleases is sending notifications on new releases.