Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/egoist/rollup-loader
- Owner: egoist
- License: mit
- Created: 2015-12-17T08:52:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-12-25T14:43:41.000Z (about 3 years ago)
- Last Synced: 2024-10-23T10:35:18.072Z (2 months ago)
- Topics: loader, rollup, webpack
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 86
- Watchers: 8
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)