0.1.0 • Published 7 years ago

babel-preset-future v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

babel-preset-future

Babel preset including es2015, es2016, es2017 (under env) and stage-0 so you can enjoy JavaScript with all of its new and experimental features.

Install

Using Yarn:

yarn add babel-preset-future

Or npm:

npm install babel-preset-future --save

Configuration

Simply add it to your .babelrc file:

{
    "presets": ["future"]
}

Or when using the CLI:

babel app.js --presets future

Options

Options will be passed down to the babel-preset-env preset. This means you can, for example, disable the transformation of ES6 modules to CJS:

{
    "presets": [
        ["future", { "modules": false }]
    ]
}