Back to results
vovkabelov/rollup-plugin-simple-babel(opens in a new tab)
Language: JavaScript
Babel for Rollup
- stars
- 0
- watchers
- 1
- forks
- 0
- open issues
- 0
- Last updated
- 09/17/2018
Language: JavaScript
Babel for Rollup
Simple and awesome Babel plugin for rollup
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() ], ... }
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
Code and documentation copyright 2018 Vladimir Belov. Code released under the MIT license.