Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tkers/babel-preset-future
- Owner: tkers
- Created: 2018-02-02T23:06:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T20:09:13.000Z (almost 7 years ago)
- Last Synced: 2024-12-23T12:14:42.780Z (about 2 months ago)
- Topics: babel, babel-preset, es2017, es2018, es6, es7, es8, javascript
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 }]
]
}
```