Plugins

Out of the box Babel doesn't do anything. In order to actually do anything to your code you need to enable plugins. Don't know where to start? Check out some of the presets.

Presets

Don't want to assemble your own set of plugins? No problem! Presets are sharable configs. We've assembled some for common environments:

Misc

Syntax

These plugins allow Babel to parse specific types of syntax.

Transform

These plugins apply transformations to your code.

Transform plugins will enable the corresponding syntax plugin so you don't have to specify both.

ES3

ES5

ES2015

Modules

Experimental

Minification

React

Other

Options

Plugins can specify options. You can do so in your config by wrapping it in an array and providing a options object. For example:

{
  "plugins": [
    ["transform-async-to-module-method", {
      "module": "bluebird",
      "method": "coroutine"
    }]
  ]
}