Skip to content

build.chunkSizeLimit #18496

Open
Open
@mfulton26

Description

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions