When Babel 6 needs to transform code, put a valid JSON configuration file named .babelrc in the project root. Babel 6 applies no transformations by default, so install the presets or plugins you want and specify them in the configuration. section 2.2
{
"presets": ["es2015"]
}
This minimal configuration selects the ES2015 preset; install the preset in the project as well. section 2.2
Listing 2.2. Babel stage-0 presets
This expanded example adds stage-0 features, a legacy decorators plugin, and inline source maps. Stage-0 includes existing proposed features; install the listed presets and plugin. section 2.3
