Note: this is a (hopefully temporary) fork of the broccoli-rollup
module.
Usage
Broccoli-rollup is a simple wrapper around Rollup. In the options object pass the rollup options.
basic
var Rollup = require('broccoli-rollup');
var lib = 'lib';
module.exports = new Rollup(lib, {
rollup: {
input: 'lib/index.js',
output: {
file: 'my-lib.js',
format: 'es',
},
}
})
\w targets
var Rollup = require('broccoli-rollup');
var lib = 'lib';
module.exports = new Rollup(lib, {
rollup: {
input: 'lib/index.js',
output: [
{
file: 'my-lib.amd.js'
format: 'amd',
},
{
file: 'my-lib.iife.js'
format: 'iife',
}
]
}
})