@@ -116,12 +116,12 @@ _Note: Explicitly installing `regenerator-runtime` is not needed if you use
116116Don' t forget to add a [`.babelrc`](https://babeljs.io/docs/usage/babelrc/) file
117117in your project' s root folder. For example, if you are using ES6 and
118118[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
120120[` babel-preset-react` ](https://babeljs.io/docs/plugins/preset-react/) presets:
121121
122122` ` ` json
123123{
124- " presets" : [" es2015 " , " react" ]
124+ " presets" : [" env " , " react" ]
125125}
126126` ` `
127127
@@ -132,16 +132,16 @@ You are now set up to use all ES6 features and React specific syntax.
132132> `test`. It will not use `development` section like Babel does by default when
133133> no `NODE_ENV` is set.
134134
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
136136> ` { " modules" : false }` , you have to make sure to turn this on in your test
137137> environment.
138138
139139` ` ` json
140140{
141- " presets" : [[" es2015 " , {" modules" : false}], " react" ],
141+ " presets" : [[" env " , {" modules" : false}], " react" ],
142142 " env" : {
143143 " test" : {
144- " presets" : [[" es2015 " ], " react" ]
144+ " presets" : [[" env " ], " react" ]
145145 }
146146 }
147147}
0 commit comments