That one lodash import just added 72KB to your production build. BundlePhobia catches oversized dependencies, duplicate packages, and tree-shaking failures before your users pay the price.
Bloated bundles kill load times, drain mobile batteries, and tank your Lighthouse score. Every unnecessary kilobyte is a user who bounced. BundlePhobia scans your entire dependency tree, flags the worst offenders, and tells you exactly how to fix them.
Flags known heavyweight packages like moment.js, lodash, and faker. Suggests modern, lightweight alternatives with exact size comparisons so you can swap without guessing.
Detects when you've installed overlapping packages that do the same thing — like axios alongside node-fetch, or date-fns alongside dayjs. Pick one, drop the rest.
Catches namespace imports, barrel file re-exports, and CommonJS requires that prevent bundlers from eliminating dead code. Ensures every import is tree-shakeable.
Reviews your webpack, Vite, Rollup, and esbuild configs for missing optimizations. Flags absent code splitting, missing minification, and suboptimal chunk strategies.
Block bundle-bloating imports before they land in main. Integrates with Lefthook to scan every commit and reject changes that push your bundle over budget.
Set hard byte limits per entry point, chunk, or total bundle. Fail builds that exceed your budget. Keep your team honest and your bundles lean across every release.
| Feature | bundlesize | size-limit | webpack-bundle-analyzer | depcheck | bundlephobia.com | BundlePhobia CLI |
|---|---|---|---|---|---|---|
| Oversized dep detection | ✗ | ✗ | ✗ (visual only) | ✗ | ✓ (per-package) | ✓ Full project scan |
| Duplicate package finder | ✗ | ✗ | ✗ | ✓ (partial) | ✗ | ✓ Cross-category |
| Tree-shaking analysis | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ Import-level |
| Bundle config audit | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ webpack/Vite/Rollup |
| Size budgets | ✓ | ✓ | ✗ | ✗ | ✗ | ✓ Per-entry & total |
| Pre-commit hooks | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ |
| SARIF / CI output | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ |
| Offline / local | ✓ | ✓ | ✓ | ✓ | ✗ (web only) | ✓ |
Start scanning for free. Upgrade when your bundles demand it.
No spam. One email per week max. Unsubscribe anytime.
Install BundlePhobia in 30 seconds. Find every oversized dependency, duplicate package, and tree-shaking failure in your project.