SIZE_BUDGET_EXCEEDED: Component over the size budget
Este conteúdo não está disponível em sua língua ainda.
| Severity | Fault | Stage |
|---|---|---|
| error | customer (the source package) | build output |
What it means
Section titled “What it means”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.
How to fix
Section titled “How to fix”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.