App-vite v3 with rolldown need additional configuration on __some__ projects/ #18503
Replies: 2 comments 2 replies
|
I would keep this as a project-level workaround until there is a minimal reproduction showing that Quasar's default chunking is the cause. A global “all Vue code in one chunk” rule changes caching and bundle parallelism for every application, while this failure may depend on the upgraded project's dependency graph. Two checks are especially useful before proposing a default:
Also note that If a clean reproducer still fails only after production chunking, attach the before/after chunk list and the smallest dependency set to a Quasar issue. That gives maintainers enough evidence to decide whether the fix belongs in Quasar, Vue/Rolldown interop, or a dependency's packaging. Until then, documenting |
yes, there is only one version of In a fresh project there is no error. Different runtime chunks appeared when I import some Vue-related things in boot files and in other source files, but there is no error. Maybe you can see something in rollup-plugin-visualizer output. stats.html of broken build Maybe error is related to chunk size limit and cannot be reproduced in small projects? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
On some older projects after upgrading to app-vite v3 dev server works fine, but built app fails to run. The error in browser console looked like
TypeError: undefined is not a function <anonymous> runtime-dom.esm-bundler.js:112, sometimes it contains different filenames. After some investigation, I found that the reason is circular dependencies in vuejs internal packages, which Rolldown splits into different chunks.The solution is to configure Rolldown to put everything vuejs related into a single bundle. This can be done with extendViteConf, for example:
Maybe it should be included in the default Quasar configuration?
All reactions