4.4.7-alpha.9 • Published 2 years ago

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

Weekly downloads
28
License
MIT
Repository
-
Last release
2 years ago

This plugin provides Babel 6 support to mrbuilder. The next major version will be defaulted to Babel 7 instead. Although support for babel 6 will continue for some time.

This plugin 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:

{
  "presets": [
    "env",
    "react",
    "stage-2"
  ],
  "plugins": [
    "./react-class-display-name",
    "transform-function-bind",
    "transform-class-properties",
    "transform-async-to-generator",
    "transform-export-extensions",
    "transform-runtime"
  ]
}
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