[![Dependency Status][david-dm-shield]][david-dm]
This plugin requires Taskr and Rollup.
$ yarn add -D taskr rollup taskr-rollup
or
$ npm install taskr rollup taskr-rollup
exports.bundle = function*(task) {
yield task
// bundle entry file
.source("src/entry.js")
.rollup({
// configuration options, https://rollupjs.org/#configuration-files
plugins: [require("rollup-plugin-babel")()],
output: {
file: "bundle.js",
format: "es"
}
})
.target("dist");
};
All Rollup options are supported, with the exception of input
.