Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace preset-es2015 with preset-env #5346

Merged
merged 1 commit into from
Jan 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ _Note: Explicitly installing `regenerator-runtime` is not needed if you use
Don't forget to add a [`.babelrc`](https://babeljs.io/docs/usage/babelrc/) file
in your project's root folder. For example, if you are using ES6 and
[React.js](https://facebook.github.io/react/) with the
[`babel-preset-es2015`](https://babeljs.io/docs/plugins/preset-es2015/) and
[`babel-preset-env`](https://babeljs.io/docs/plugins/preset-env/) and
[`babel-preset-react`](https://babeljs.io/docs/plugins/preset-react/) presets:

```json
{
"presets": ["es2015", "react"]
"presets": ["env", "react"]
}
```

Expand All @@ -113,16 +113,16 @@ You are now set up to use all ES6 features and React specific syntax.
> `test`. It will not use `development` section like Babel does by default when
> no `NODE_ENV` is set.

> Note: If you've turned off transpilation of ES2015 modules with the option
> Note: If you've turned off transpilation of ES6 modules with the option
> `{ "modules": false }`, you have to make sure to turn this on in your test
> environment.

```json
{
"presets": [["es2015", {"modules": false}], "react"],
"presets": [["env", {"modules": false}], "react"],
"env": {
"test": {
"presets": [["es2015"], "react"]
"presets": [["env"], "react"]
}
}
}
Expand Down