Funkcionalna radna verzija

This commit is contained in:
GotPPay
2017-10-18 14:48:50 +02:00
parent a75ea978f9
commit 67dd77c632
127 changed files with 2436 additions and 163 deletions

View File

@@ -0,0 +1,35 @@
# babel-plugin-syntax-async-generators
Allow parsing of async generator functions.
## Installation
```sh
$ npm install babel-plugin-syntax-async-generators
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["syntax-async-generators"]
}
```
### Via CLI
```sh
$ babel --plugins syntax-async-generators script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["syntax-async-generators"]
});
```