Package Exports
- rollup-plugin-summary
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-summary) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rollup-plugin-summary
A rollup plugin that summarizes the output of the build. Under the hood, it uses rollup-plugin-filesize to calculate file sizes and display them in a tabular form using as-table and color it with chalk.

Installation
npm
npm i rollup-plugin-summary -Dyarn
yarn add rollup-plugin-summary -DUsage
File: rollup.config.js
import summary from 'rollup-plugin-summary';
export default {
plugins: [
summary(),
]
}Options
| Name | Type | Description | Default |
|---|---|---|---|
| warnLow | number | Minimum size in bytes to be highlighted in yellow | 5000 |
| warnHigh | number | Minimum size in bytes to be highlighted in red | 10000 |
| totalLow | number | Minimum total size in bytes to be highlighted in yellow | 200000 |
| totalHigh | number | Minimum total size in bytes to be highlighted in red | 300000 |
License
MIT
Documentation
Read the documentation