4.4.7-alpha.9 • Published 3 years ago

@mrbuilder/plugin-babel v4.4.7-alpha.9

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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:

PropertyTypeDefaultDescription
hotboolfalseTurns hot loading supoprt for hmr usually automatically
testregex/.jsx?$/Webpack module test to transpile
includesarrayOf: string,regex./src,./public,./testWebpack module includes option
useobject{use:{loader:'babel-loader}}Allows for a different babel-loader
<babel_plugin>objectconfigure babel plugins
cacheDirectorybool or stringtrueuse 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"
    ]
  }
}