格式化与代码
捆绑包大小分析器 (模拟器)
Paste a package list, estimate the resulting bundle weight.
- KB
- KB
- KB
- KB
Defaults are rough min+gzip sizes for popular packages. Tweak the KB column with the real number from npmjs.com when accuracy matters.
Estimated weight
176 KB
≈ 59 KB gzipped
Healthy
Budgets: <100 KB gzipped is healthy for landing pages, 100-300 KB is the typical SPA range, >300 KB suggests aggressive code-splitting.
编辑注
Understanding · What's actually in your JavaScript.
本深度章节目前仅有英文版本。上方的转换工具支持您的语言;长篇说明文章尚未翻译。
常见问题
Quick answers.
›How is the bundle size calculated?
The tool simulates a production build by adding the minified and gzipped sizes of the requested package and its entire dependency tree.
›Is this the exact size I will see in my app?
No, this is an estimate. Your final bundle size depends on your build tool's tree-shaking capabilities, duplicate dependencies, and code-splitting configuration.
›Does it support private packages?
No. This tool uses a public metadata cache to estimate weights; it cannot access private registries or local source code files.
›What is the difference between Minified and Gzipped?
Minified shows the size after removing whitespace and shortening variables. Gzipped reflects the compressed size actually sent over the network to the user's browser.
大家也在搜索
相关工具
More in this room.
- Docker Compose 生成器根据服务列表生成 Compose 文件。
- Kubernetes Deployment + Service一个文件中的 K8s Deployment + Service manifest。
- GitHub Actions 工作流在几秒钟内为 Node、Python 或 Go 生成 CI 工作流。
- GitLab CI 流水线多阶段 .gitlab-ci.yml — 构建 / 测试 / 部署。
- Terraform 模块存根variables.tf + main.tf + outputs.tf 支架。
- Dockerfile 最佳实践生成器多阶段 Dockerfile + .dockerignore — Node、Python、Go。