@@ -116,12 +116,12 @@ _Note: Explicitly installing `regenerator-runtime` is not needed if you use
116
116
Don' t forget to add a [`.babelrc`](https://babeljs.io/docs/usage/babelrc/) file
117
117
in your project' s root folder. For example, if you are using ES6 and
118
118
[React.js](https://facebook.github.io/react/) with the
119
- [` babel-preset-es2015 ` ](https://babeljs.io/docs/plugins/preset-es2015 /) and
119
+ [` babel-preset-env ` ](https://babeljs.io/docs/plugins/preset-env /) and
120
120
[` babel-preset-react` ](https://babeljs.io/docs/plugins/preset-react/) presets:
121
121
122
122
` ` ` json
123
123
{
124
- " presets" : [" es2015 " , " react" ]
124
+ " presets" : [" env " , " react" ]
125
125
}
126
126
` ` `
127
127
@@ -132,16 +132,16 @@ You are now set up to use all ES6 features and React specific syntax.
132
132
> `test`. It will not use `development` section like Babel does by default when
133
133
> no `NODE_ENV` is set.
134
134
135
- > Note: If you' ve turned off transpilation of ES2015 modules with the option
135
+ > Note: If you' ve turned off transpilation of ES modules with the option
136
136
> ` { " modules" : false }` , you have to make sure to turn this on in your test
137
137
> environment.
138
138
139
139
` ` ` json
140
140
{
141
- " presets" : [[" es2015 " , {" modules" : false}], " react" ],
141
+ " presets" : [[" env " , {" modules" : false}], " react" ],
142
142
" env" : {
143
143
" test" : {
144
- " presets" : [[" es2015 " ], " react" ]
144
+ " presets" : [[" env " ], " react" ]
145
145
}
146
146
}
147
147
}
0 commit comments