rollup-loader

Rollup does what it can do, and let Webpack finish the job.

MIT License

Downloads
268
Stars
86
Committers
4

rollup-loader

How does it work

It uses the rollup-plugin-memory to accept input file from webpack and returns processed result and sourcemaps.

Usage

// webpack.config.js
module.exports = {
  module: {
    rules: [{
      test: /\.js$/,
      loader: 'rollup-loader',
      options: [/* custom rollup plugins */]
      // or directly pass rollup options
      // options: { plugins: [] }
    }]
  }
}

Check out Rollup JavaScript API for option reference.

License

MIT © EGOIST