πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Sign inDemoInstall
Socket

rollup-plugin-bundlens

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-bundlens

Reports metrics of Rollup.js bundles

0.1.1
latest
Source
npm
Version published
Weekly downloads
17
325%
Maintainers
0
Weekly downloads
Β 
Created
Source

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:

import { reportDetails } from "rollup-plugin-bundlens"

export default {
  input: "src/index.js",
  output: {
    dir: "dist",
    format: "esm",
  },
  plugins: [reportDetails()],
}

Output Example

Plugin Output Preview

Color-coded indicators for bundle sizes

  • 🟒 Green: < 16kB
  • 🟑 Yellow: < 64kB
  • πŸ”΄ Red: < 120kB
  • 🟣 Magenta: >= 120kB

License

Licensed under the MIT License

Keywords

rollup

FAQs

Package last updated on 24 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts