# rollup-plugin-bundle-size

> Output the size of your bundle

Latest version **1.0.3** (published 2019-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-bundle-size
pnpm add rollup-plugin-bundle-size
yarn add rollup-plugin-bundle-size
bun add rollup-plugin-bundle-size
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-01-17 |
| First published | 2016-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Brad Dougherty |
| Maintainers | bdougherty, dashron |
| Keywords | rollup-plugin |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-bundle-size
- Repository: https://github.com/vimeo/rollup-plugin-bundle-size
- Issues: https://github.com/vimeo/rollup-plugin-bundle-size/issues
- npm.io page: https://npm.io/package/rollup-plugin-bundle-size

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [maxmin](https://npm.io/package/maxmin.md) ^2.1.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-01-17
- 1.0.2 — 2018-08-17
- 1.0.1 — 2016-08-24
- 1.0.0 — 2016-08-22

## README

# rollup-plugin-bundle-size [![npm](https://img.shields.io/npm/v/rollup-plugin-bundle-size.svg?maxAge=2592000)](https://www.npmjs.com/package/rollup-plugin-bundle-size)

> A rollup plugin to show the size of the generated bundle(s).

## Installation

```bash
npm install --save-dev rollup-plugin-bundle-size
```

## Usage

### JS API

```js
const rollup = require('rollup');
const bundleSize = require('rollup-plugin-bundle-size');

rollup.rollup({
    entry: 'src/index.js',
    plugins: [
        bundleSize()
    ]
}).then((bundle) => {
    ...
});
```

### Config File

```js
import bundleSize from 'rollup-plugin-bundle-size';

export default {
    entry: 'src/index.js',
    plugins: [
        bundleSize()
    ]
}
```

---
_Source: https://npm.io/package/rollup-plugin-bundle-size · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
