rollup-plugin-simple-babel
v1.0.6
Published
Babel plugin for Rollup
Downloads
688
Maintainers
Readme
rollup-plugin-simple-babel
Simple and awesome Babel plugin for rollup
Quick start
1. Install plugin package via npm npm install rollup-plugin-simple-babel
or via yarn yarn add rollup-plugin-simple-babel
2. Add plugin call into Rollup config file
// rollup.config.js
import babel from 'rollup-plugin-simple-babel';
module.exports = {
...,
plugins: [
babel()
],
...
}
Options
This plugin supported all Babel options
Example:
import babel from 'rollup-plugin-simple-babel';
module.exports = {
...,
plugins: [
babel({
presets: ['@babel/preset-react']
})
],
...
}
By default Babel calls without options
Copyright and license
Code and documentation copyright 2018 Vladimir Belov. Code released under the MIT license.