It uses the rollup-plugin-memory to accept input file from webpack and returns processed result and sourcemaps.
// 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.
MIT © EGOIST