Problem Statement
next-bundle-analyzer is configured (scripts/run-analyze-build.mjs) but no hard budget exists. The size-limit.json is loose; no CI gate fires when a feature regresses the bundle.
Acceptance Criteria
- Hard limits: initial JS ≤ 220KB, web3-vendors ≤ 180KB, CSS ≤ 60KB
- The
perf:budgets script returns non-zero when exceeded
- PRs with regressions are blocked; comments appear inline
Implementation Notes
Wire next-bundle-analyzer JSON into a custom check in scripts/check-performance-budgets.mjs.
Files Likely Affected
scripts/check-performance-budgets.mjs
.github/workflows/ci.yml
.size-limit.json
Difficulty / Effort
- Difficulty: Moderate
- Effort: T-Shirt M
Labels
ci-cd, priority:high, area:performance
Problem Statement
next-bundle-analyzeris configured (scripts/run-analyze-build.mjs) but no hard budget exists. Thesize-limit.jsonis loose; no CI gate fires when a feature regresses the bundle.Acceptance Criteria
perf:budgetsscript returns non-zero when exceededImplementation Notes
Wire
next-bundle-analyzerJSON into a custom check inscripts/check-performance-budgets.mjs.Files Likely Affected
scripts/check-performance-budgets.mjs.github/workflows/ci.yml.size-limit.jsonDifficulty / Effort
Labels
ci-cd,priority:high,area:performance