Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An Rollup plugin that helps manage and log bundle metrics. Use it to track and analyze your bundle.

License

NotificationsYou must be signed in to change notification settings

supitsdu/rollup-plugin-bundlens

Repository files navigation

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"exportdefault{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 theMIT License

About

An Rollup plugin that helps manage and log bundle metrics. Use it to track and analyze your bundle.

Topics

Resources

License

Stars

Watchers

Forks

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp