Package Exports
- rollup-plugin-simple-babel
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-simple-babel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rollup-plugin-simple-babel
Simple and awesome Babel plugin for rollup
Install via NPM
npm install rollup-plugin-simple-babel --save-devInstall via Yarn
yarn add rollup-plugin-simple-babel --devUse
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']
})
]
...
}Default options
import babel from 'rollup-plugin-simple-babel';
module.exports = {
...
plugins: [
babel({
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-external-helpers']
})
]
...
}