Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tkers/babel-preset-future

🔮 Babel preset enabling all new and experimental ES features
https://github.com/tkers/babel-preset-future

babel babel-preset es2017 es2018 es6 es7 es8 javascript

Last synced: about 1 month ago
JSON representation

🔮 Babel preset enabling all new and experimental ES features

Awesome Lists containing this project

README

        

# 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:

```bash
yarn add babel-preset-future
```

Or npm:

```bash
npm install babel-preset-future --save
```

## Configuration

Simply add it to your `.babelrc` file:

```json
{
"presets": ["future"]
}
```

Or when using the CLI:

```bash
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:

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