A Rollup.js plugin that analyzes and reports bundle metrics including file sizes, gzip sizes, and detailed bundle information.
- π Reports bundle size metrics
- π¦ Shows individual chunk and asset sizes
- ποΈ Includes gzip size information
- π¨ Color-coded size indicators
- π Detailed bundle summary
Add the plugin to your rollup.config.js:
import { reportDetails } from "rollup-plugin-bundlens"
export default {
input: "src/index.js",
output: {
dir: "dist",
format: "esm",
},
plugins: [reportDetails()],
}
- π’ Green: < 16kB
- π‘ Yellow: < 64kB
- π΄ Red: < 120kB
- π£ Magenta: >= 120kB
Licensed under the MIT License