Performance budgets die slowly: a helper imports a heavy server barrel into one client island, or an experimental CSS at-rule triggers compiler warnings that everyone ignores until production breaks.
Turning bundle budgets into failing build assertions#
On Lab Section 08, telemetry comes from the build output rather than hand-typed numbers:
- Isolated shared lazy chunks: WebGL runs only inside a
dynamic(ssr: false)chunk.pnpm budget:checkfails the build if that lazy 3D chunk passes160 kB gzor any app route chunk passes22 kB gz. The build manifest generated on 24 November 2026 recorded82.4 kB gzand15.3 kB gzrespectively. - LightningCSS zero-warning guard:
pnpm css:checkrejects unsupported experimental@container anchored(...)rules before compilation begins. - Manifest snapshot discipline:
pnpm telemetry:buildextracts real gzipped.next/staticmeasurements alongside proof metadata review dates.