JSPM

  • Created
  • Published
  • Downloads 3233374
  • Score
    100M100P100Q269093F
  • License MIT

Package Exports

  • rollup-plugin-visualizer

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-visualizer) 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 Visualizer

Visualize and analyze your Rollup bundle to see which modules are taking up space.

Plugin Usage

npm i -D rollup-plugin-visualizer
var Visualizer = require('rollup-plugin-visualizer');

//...
plugins: [Visualizer()],
//...

This will output a file named stats.html in current directory. You can modify the name/location by passing a filename parameter into the constructor.

var Visualizer = require('rollup-plugin-visualizer');

//...
plugins: [Visualizer({
  filename: './statistics.html'
})],
//...

Acknowledges

Initially this plugin is based on webpack-visualizer, but at the end rest only styles and layout. Thanks tons of people around internet for great examples of d3 usage.