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
I configured build.chunkSizeWarningLimit = 5000 in vite.config.js to eliminate the warning that the package size exceeds 500kb, but it still reports an error when packaging, why is this?
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.
The warning comes from babel and @vitejs/plugin-legacy and can be safely ignored. If you want to improve performance (as noted in the warning), manually set the modernPolyfills config so that babel doesn't have to scan itself.
If you'd like to find what babel scan by default, start your build like DEBUG="vite:legacy" npm run build and it would log the modernPolyfills found.
Describe the bug
I configured build.chunkSizeWarningLimit = 5000 in vite.config.js to eliminate the warning that the package size exceeds 500kb, but it still reports an error when packaging, why is this?
vite version:2.9.5
Reproduction
empty
System Info
Used Package Manager
pnpm
Logs
Validations
The text was updated successfully, but these errors were encountered: