Fix readmes to use @babel/ [skip ci] (#6569)

This commit is contained in:
Henry Zhu
2017-10-27 11:50:59 -04:00
committed by GitHub
parent e5e7f5bf79
commit 476ec5ed8f
98 changed files with 340 additions and 363 deletions

View File

@@ -48,7 +48,7 @@ Without options:
```json
{
"plugins": ["transform-regenerator"]
"plugins": ["@babel/transform-regenerator"]
}
```
@@ -63,7 +63,7 @@ With options:
```json
{
"plugins": [
["transform-regenerator", {
["@babel/transform-regenerator", {
"asyncGenerators": false,
"generators": false,
"async": false
@@ -75,13 +75,13 @@ With options:
### Via CLI
```sh
babel --plugins transform-regenerator script.js
babel --plugins @babel/transform-regenerator script.js
```
### Via Node API
```javascript
require("@babel/core").transform("code", {
plugins: ["transform-regenerator"]
plugins: ["@babel/transform-regenerator"]
});
```