一覧へ戻る
vovkabelov/rollup-plugin-simple-babel(新しいタブで開きます)
主要言語: JavaScript
Babel for Rollup
- star 数
- 0
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2018/09/17
主要言語: 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.