713 B
713 B
📊 Bundle Analysis
Simple bundle size analysis for the customer portal.
🎯 Quick Commands
# Analyze frontend bundle
pnpm analyze
# Run bundle analysis script
pnpm bundle-analyze
📈 What to Look For
- First Load JS: < 250KB (good)
- Total Bundle: < 1MB (good)
- Large Dependencies: Consider alternatives
🔧 Simple Optimizations
- Dynamic Imports: Use
lazy()for heavy components - Image Optimization: Use Next.js
Imagecomponent - Tree Shaking: Import only what you need
// Good: Specific imports
import { debounce } from 'lodash-es';
// Bad: Full library import
import * as _ from 'lodash';
That's it! Keep it simple.