Repository navigation
Replies: 1 comment
|
In case it helps anyone landing here: I wanted per-route budgets on Turbopack + App Router, so I built bundle-gate, a small CLI and GitHub Action on top of the official next analyze export (16.4+). It compares each PR with its merge base and fails the check when a route grows past its budget, naming the modules that grew. A built-in, documented per-route first-load number would still be the better long-term answer. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Goals
Non-Goals
No response
Background
next buildshows a flat list:Great for totals, useless for “what blew this up?”
When a page drifts past 500 kB you still need a plug-in, another build, and manual spelunking through component trees.
Proposal
--bundle-treeoutput or adding a "next.config.ts option"Hierarchical view per route with gz/Brotli sizes.
Example:
Size-budget warnings
next.config.js).--jsonfor CI/dashboardsAll reactions