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 appreciate the warning from build.chunkSizeWarningLimit but I want to fail my build in CI if the limit is exceeded… in fact, I might want to fail the build in CI if vite prints any warnings but at a minimum for this one.
Suggested solution
Have a flag to fail on warnings, a flag to fail on chunk size warning limit exceeded, or a separate build option to set a threshold/error limit on chunk size.
I think this flag could be enabled automatically whenever the CI env var is set but that might start to fail builds unexpectedly so an opt-in approach may be best for now.
Description
I appreciate the warning from
build.chunkSizeWarningLimit
but I want to fail my build in CI if the limit is exceeded… in fact, I might want to fail the build in CI if vite prints any warnings but at a minimum for this one.Suggested solution
Have a flag to fail on warnings, a flag to fail on chunk size warning limit exceeded, or a separate build option to set a threshold/error limit on chunk size.
I think this flag could be enabled automatically whenever the
CI
env var is set but that might start to fail builds unexpectedly so an opt-in approach may be best for now.Alternative
Use separate solutions like
bundlesize
.Additional context
#16050
Validations
The text was updated successfully, but these errors were encountered: