Skip to content

SIZE_BUDGET_EXCEEDED: Component over the size budget

Severity Fault Stage
error customer (the source package) build output

The bundle and the CSS, gzipped, are bigger than the size budget of one component (50 KB gzip by default, without the shared runtime Preact comes from). Visitors download every byte on each page with the component, so the build refuses it. The message gives the gzip size, the budget and the five largest modules of the bundle.

Shrink the largest modules the message lists: remove inlined data (JSON, base64 images, fonts) and libraries the component does not need, or load large data from an API at run time.