mrbuilder-plugin-babel

3.3.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mrbuilder-plugin-babel

Weekly Downloads

25

Version

3.3.1

License

0BSD

Unpacked Size

10.9 kB

Total Files

11

Last publish

Collaborators

  • nanandn
  • speajus-root