-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
vite 2.6+ produces 50% larger output file for ESM #8099
Labels
Comments
Firstly larger output is because the lib mode es output is not minified after 2.6 by intention (06d86e4). So this is not a bug. Secondly, the build not ending seems like a bug. As far as I investigated, it does not happen with 2.8.6 but it happens with 2.9.8. |
9 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Vite versions >= 2.6 produce approx 50% larger bundle sizes for our project.
With
vite 2.5.10
:With
vite 2.9.8
Note that
a) the build does not complete (at least not within 5 minutes or so).
b) the ES output file is now
3211.96 KiB
compared to2147.03 KiB
Repro steps
yarn install
yarn build
(by default we usevite 2.9.8
) note that the build does not terminate and the output file is 3MBpackage.json
and replace"vite": "~2.9.8"
with"vite": "~2.5.10"
yarn install && yarn build
and observe the file size is now only 2 MBReproduction
https://github.com/rburgst/vite-bundle-size-problem
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: