-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.0.0-beta.3 regression, all chunks grew significantly in size #18523
Comments
This seems to have been introduced in the The following workaround allows to avoid the bundlesize increase:
However unclear what the ideal path forward would be here and why |
I don't know if we're able to fix this other than I think we should prefer the deterministic behaviour here to prevent unwanted issues down the road. If that's not an issue for you, you can set |
It may be worth to call out in the Release docs as this is a pretty tangible perf regression for production builds. A good number of consumers of Vite may be taken off guard by it. |
Yeah we can add some more notes on this at https://main.vite.dev/guide/migration.html#advanced |
(To be clear feel free to keep open or close as you think is appropriate) I am not familiar enough to give good quality advise. On the surface, both issues seem problematic, and it is unclear if any improvements can be made to strictRequires: true. But at least there is the option to pick your poison 😆 . |
I think we can leave this open to track the documentation changes needed, no worries 👍 Thanks for testing out the beta! |
Describe the bug
Starting with Vite 6.0.0-beta.3, all chunks produced in the
dist
directory significantly grew in size.I've internally been able to confirm the increase is seen across a large number of modules and seems loosely proportional to the size of the source code (e.g. a 1370kb chunk is becoming a 1420kb chunk). The issue appears to be systematic, as if minification somehow became less efficient across the board.
Reproduction
https://stackblitz.com/edit/vitejs-vite-jeh9rn?file=main.js
Steps to reproduce
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: