Problem Statement
The Next.js app has 28 Radix UI dependencies plus recharts, embla-carousel, date-fns, sonner, lucide-react, and zod. No bundle analysis tooling exists to track bundle size regressions. Imported-but-unused dependencies silently increase page load weight.
Evidence
No @next/bundle-analyzer in devDependencies. CI has no bundle size check step.
Impact
Bundle bloat goes undetected. Users experience slow page loads. Tree-shaking effectiveness is unknown. No budget constraints enforced.
Proposed Solution
- Add
@next/bundle-analyzer to app devDependencies
- Add
ANALYZE=true npm run build script
- Add CI step that builds with analysis enabled and reports sizes
- Set initial bundle budget thresholds
Acceptance Criteria
File Map
app/next.config.mjs — add bundle analyzer
app/package.json — add analyze script
.github/workflows/ci.yml — add analysis step
Labels: performance
Priority: Low | Difficulty: Intermediate | Estimated Effort: 1d
Labels: performance
Priority: Low | Difficulty: Intermediate | Estimated Effort: 1d
Backlog ID: REPO-038
Problem Statement
The Next.js app has 28 Radix UI dependencies plus recharts, embla-carousel, date-fns, sonner, lucide-react, and zod. No bundle analysis tooling exists to track bundle size regressions. Imported-but-unused dependencies silently increase page load weight.
Evidence
No
@next/bundle-analyzerin devDependencies. CI has no bundle size check step.Impact
Bundle bloat goes undetected. Users experience slow page loads. Tree-shaking effectiveness is unknown. No budget constraints enforced.
Proposed Solution
@next/bundle-analyzerto app devDependenciesANALYZE=true npm run buildscriptAcceptance Criteria
File Map
app/next.config.mjs— add bundle analyzerapp/package.json— add analyze script.github/workflows/ci.yml— add analysis stepLabels: performance
Priority: Low | Difficulty: Intermediate | Estimated Effort: 1d
Labels: performance
Priority: Low | Difficulty: Intermediate | Estimated Effort: 1d
Backlog ID: REPO-038