transform-regenerator README pt2 (#5203)
* docs: [skip ci] remove comments in JSON * docs: [skip ci] nit remove duplicated babelrc
This commit is contained in:
parent
7fe59c38fe
commit
aa7817bafb
@ -44,8 +44,6 @@ npm install --save-dev babel-plugin-transform-regenerator
|
||||
|
||||
### Via `.babelrc` (Recommended)
|
||||
|
||||
**.babelrc**
|
||||
|
||||
Without options:
|
||||
|
||||
```json
|
||||
@ -56,13 +54,19 @@ Without options:
|
||||
|
||||
With options:
|
||||
|
||||
|name|default value|
|
||||
|---|---|
|
||||
|asyncGenerators|true|
|
||||
|generators|true|
|
||||
|async|true|
|
||||
|
||||
````json
|
||||
{
|
||||
"plugins": [
|
||||
["transform-regenerator", {
|
||||
asyncGenerators: false, // true by default
|
||||
generators: false, // true by default
|
||||
async: false // true by default
|
||||
asyncGenerators: false,
|
||||
generators: false,
|
||||
async: false
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user