-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathbundle-budget.json
More file actions
24 lines (24 loc) · 898 Bytes
/
Copy pathbundle-budget.json
File metadata and controls
24 lines (24 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"$comment": "Budgets are gzipped JavaScript, in kilobytes, enforced by scripts/check-bundle-size.js in CI. Raising a number is a deliberate decision — say why in the PR.",
"budgets": {
"firstLoadShared": {
"maxKb": 300,
"description": "JS every page pays for: the framework, shared chunks and the root layout."
},
"perRoute": {
"maxKb": 450,
"description": "First-load JS for any single route, shared chunks included."
},
"totalClient": {
"maxKb": 4500,
"description": "Every client chunk the build emits, added up."
}
},
"routeOverrides": {
"$comment": "Routes that legitimately exceed perRoute. Each needs a reason.",
"/(dashboard)/settings": {
"maxKb": 520,
"reason": "Account, security, wallet and privacy panels on one page; the heavy panels are lazy-loaded but the shell is still large."
}
}
}