Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/egoist/rollup-loader

Rollup does what it can do, and let Webpack finish the job.
https://github.com/egoist/rollup-loader

loader rollup webpack

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# rollup-loader

[![NPM version](https://img.shields.io/npm/v/rollup-loader.svg?style=flat)](https://npmjs.com/package/rollup-loader) [![Build Status](https://img.shields.io/circleci/project/egoist/rollup-loader/master.svg?style=flat)](https://circleci.com/gh/egoist/rollup-loader)

## How does it work

It uses the [rollup-plugin-memory](https://github.com/TrySound/rollup-plugin-memory) to accept input file from webpack and returns processed result and sourcemaps.

## Usage

```js
// 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](https://github.com/rollup/rollup/wiki/JavaScript-API) for option reference.

## License

MIT © [EGOIST](https://github.com/egoist)