https://github.com/supitsdu/rollup-plugin-bundlens
An Rollup plugin that helps manage and log bundle metrics. Use it to track and analyze your bundle.
https://github.com/supitsdu/rollup-plugin-bundlens
bundle-analyzer bundle-size gzip-size metrics rollup-plugin
Last synced: 4 months ago
JSON representation
An Rollup plugin that helps manage and log bundle metrics. Use it to track and analyze your bundle.
- Host: GitHub
- URL: https://github.com/supitsdu/rollup-plugin-bundlens
- Owner: supitsdu
- License: mit
- Created: 2024-11-23T05:06:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-01T07:30:36.000Z (over 1 year ago)
- Last Synced: 2025-09-23T17:57:14.009Z (9 months ago)
- Topics: bundle-analyzer, bundle-size, gzip-size, metrics, rollup-plugin
- Language: TypeScript
- Homepage:
- Size: 261 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bundlens - Rollup.js Plugin
A Rollup.js plugin that analyzes and reports bundle metrics including file sizes, gzip sizes, and detailed bundle information.
## Features
- 📊 Reports bundle size metrics
- 📦 Shows individual chunk and asset sizes
- 🗜️ Includes gzip size information
- 🎨 Color-coded size indicators
- 📝 Detailed bundle summary
## Usage
Add the plugin to your rollup.config.js:
```js
import { reportDetails } from "rollup-plugin-bundlens"
export default {
input: "src/index.js",
output: {
dir: "dist",
format: "esm",
},
plugins: [reportDetails()],
}
```
## Output Example

## Color-coded indicators for bundle sizes
- 🟢 Green: < 16kB
- 🟡 Yellow: < 64kB
- 🔴 Red: < 120kB
- 🟣 Magenta: >= 120kB
## License
Licensed under the [MIT License](/LICENSE)