@mrbuilder/plugin-babel

4.4.7-alpha.9 • 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"
    ]
  }
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @mrbuilder/plugin-babel

      Weekly Downloads

      0

      Version

      4.4.7-alpha.9

      License

      MIT

      Unpacked Size

      13.4 kB

      Total Files

      13

      Last publish

      Collaborators

      • speajus
      • nanandn
      • brycereynolds