Skip to content

Commit

Permalink
fix preset-latest [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism committed Jan 30, 2017
1 parent 375beb3 commit ddcad21
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions packages/babel-preset-latest/README.md
Expand Up @@ -38,21 +38,21 @@ require("babel-core").transform("code", {

### `es2015`

`boolean`, defaults to `false`.
`boolean`, defaults to `true`.

Toggles including plugins from the [es2015 preset](/docs/plugins/preset-es2015/).
Toggles including plugins from the [es2015 preset](https://babeljs.io/docs/plugins/preset-es2015/).

```js
{
"presets": [
["latest", {
"es2015": false // defaults to true
"es2015": false
}]
]
}
```

You can also pass options down to the `es2015` preset. This also works for the other preset options.
You can also pass options down to the `es2015` preset.

```js
{
Expand All @@ -66,14 +66,16 @@ You can also pass options down to the `es2015` preset. This also works for the o
}
```

**Note:** This also works for the other preset-year options below.

### `es2016`

`boolean`, defaults to `false`.
`boolean`, defaults to `true`.

Toggles including from the [es2016 preset](/docs/plugins/preset-es2016/).
Toggles including plugins from the [es2016 preset](https://babeljs.io/docs/plugins/preset-es2016/).

### `es2017`

`boolean`, defaults to `false`.
`boolean`, defaults to `true`.

Toggles including plugins from the [es2017 preset](/docs/plugins/preset-es2017/).
Toggles including plugins from the [es2017 preset](https://babeljs.io/docs/plugins/preset-es2017/).

0 comments on commit ddcad21

Please sign in to comment.