/rollup-plugin-prepack

Rollup plugin to easily run your bundles through prepack

Primary LanguageJavaScriptMIT LicenseMIT

rollup-plugin-prepack

NPM Travis

Run your Rollup bundles through prepack.

See prepack for more info and details on when it makes sense for this optimization.


Usage

Install

npm i rollup-plugin-prepack --save-dev

Use plugin in your rollup.config.js

const buble = require('rollup-plugin-buble')
const prepack = require('rollup-plugin-prepack')

const options = {} // prepack options, see prepack docs

module.exports = {
  entry: 'src/index.js',
  plugins: [
    buble({ jsx: 'h' }),
    prepack(options)
  ],
  // ...
}

Configuration

Name Description Default
prepack Prepack configuration. See Prepack documentation.

License

MIT