babel-preset-build-engine
v2.0.1
Published
Collection of babel presets & plugins, following our styleguide
Downloads
14
Maintainers
Readme
babel-preset-build-engine
Collection of Babel presets and plugins for all the development environments
Installation
You'll install babel-preset-build-engine
:
$ npm install babel-preset-build-engine --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install babel-preset-build-engine
globally.
Usage
Add build-engine
to the plugins section of your .babelrc
configuration file. You can omit the babel-preset-
prefix:
For Nodejs
{
"presets": [
"build-engine"
]
}
For React with transform-runtime
{
"presets": [
"build-engine/react"
]
}
For Webpack with React & transform-runtime & enabled the Tree shaking
{
"presets": [
"build-engine/reactWebpack"
]
}
For Webpack & transform-runtime & enabled the Tree shaking
{
"presets": [
"build-engine/webpack"
]
}