mrbuilder-plugin-babel
v3.3.1
Published
Tools for developing babel with mrbuilder
Downloads
60
Readme
This plugin provides babel support to mrbuilder. It allows for configuration via .babelrc or via normal mrbuilder configuration methods. It also provides support for babel to webpack via babel-loader
The default babel configuration:
| Property | Type | Default | Description | | ------------- | -----------| -------------| ---------------------------------| | hot | bool | false | Turns hot loading supoprt for hmr usually automatically| | test | regex | /.jsx?$/ | Webpack module test to transpile | | includes | arrayOf: string,regex|./src,./public,./test| Webpack module includes option | | use | object | {use:{loader:'babel-loader}}| Allows for a different babel-loader | | <babel_plugin>| object | | configure babel plugins | | cacheDirectory | bool or string| true | use the cache directory to speed up builds.
To use Babel 7 will need to set the babelVersion to 7 and include the mrbuilder-plugin-babel-7 plugin in your configuration, and you should exclude the mrbuilder-plugin-babel-6 while your at it
{
mrbuilder:{
"plugins": [
"mrbuilder-plugin-babel-7"
]
}
}