Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

babel-preset-accelerator

sku1465MIT1.0.0

Collection of babel presets & plugins, following our styleguide

babel, babelpreset, config, accelerator, javascript, styleguide

readme

babel-preset-accelerator

Collection of Babel presets and plugins for all the development environments

Installation

You'll install babel-preset-accelerator:

$ npm install babel-preset-accelerator --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install babel-preset-accelerator globally.

Usage

Add accelerator to the plugins section of your .babelrc configuration file. You can omit the babel-preset- prefix:

For React without transform-runtime

{
    "presets": [
        "accelerator"
    ]
}

For with transform-runtime

{
    "presets": [
        "accelerator/latest"
    ]
}

For Nodejs

{
    "presets": [
        "accelerator/node"
    ]
}

For Webpack with React & transform-runtime & enabled the Tree shaking

{
    "presets": [
        "accelerator/webpack"
    ]
}

License

MIT