You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vite versions >= 2.6 produce approx 50% larger bundle sizes for our project.
With vite 2.5.10:
yarn build
yarn run v1.22.18
$ tsc && vite build
vite v2.5.10 building for production...
transforming (1) src/index.tsUse of eval is strongly discouraged, as it poses security risks and may cause issues with minification
Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
✓ 11 modules transformed.
dist/vite-bundle-size-problem.es.js 2147.03 KiB / brotli: skipped (large chunk)
dist/vite-bundle-size-problem.umd.js 2147.39 KiB / brotli: skipped (large chunk)
✨ Done in 14.95s.
With vite 2.9.8
vite v2.9.8 building for production...
transforming (1) src/index.tsUse of eval is strongly discouraged, as it poses security risks and may cause issues with minification
Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
✓ 11 modules transformed.
dist/vite-bundle-size-problem.es.js 3211.96 KiB / gzip: 737.04 KiB
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 to 2147.03 KiB
Repro steps
run yarn install
run yarn build (by default we use vite 2.9.8) note that the build does not terminate and the output file is 3MB
change package.json and replace "vite": "~2.9.8" with "vite": "~2.5.10"
run yarn install && yarn build and observe the file size is now only 2 MB
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
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: