mrbuilder-plugin-babel

Tools for developing babel with mrbuilder

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
mrbuilder-plugin-babel
3.3.14 years ago6 years agoMinified + gzip package size for mrbuilder-plugin-babel in KB

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 | | 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"
    ]
  }
}