Weird production build behavior when bundling with Vite #12778
Unanswered
jonathanpmartins
asked this question in
General - Components / Directives / etc
Replies: 2 comments
-
maybe this can help: https://rollupjs.org/guide/en/#outputmanualchunks |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same here for Quasar 2.7.5 and Vite 2.9.13. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After the upgrade to 2.6.0 vite generated lots of files when bundling things to production. My first load got from 21 requests to 257 requests. My guess is that it is eager loading everything. All quasar components are loaded in separated files. Even moment-js was loaded in a different connection.
My build target:
I need es2020 because I use BigInt.
With 2.5.5 (webpack):
With 2.6.0 (vite):
Can I mess with some configuration to reduce the number of files generates in the production build?
Is this the default behavior?
Beta Was this translation helpful? Give feedback.
All reactions