You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Björn
b963b3396c
|
4 years ago | |
---|---|---|
.. | ||
lib | 4 years ago | |
src | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
package.json | 4 years ago |
README.md
regenerator-transform
Transform async/generator functions with regenerator
Installation
$ npm install regenerator-transform
Usage
Via .babelrc
(Recommended)
.babelrc
// without options
{
"plugins": ["regenerator-transform"]
}
// with options
{
"plugins": [
["regenerator-transform", {
asyncGenerators: false, // true by default
generators: false, // true by default
async: false // true by default
}]
]
}
Via CLI
$ babel --plugins regenerator-transform script.js
Via Node API
require("@babel/core").transformSync("code", {
plugins: ["regenerator-transform"]
});