async-to-generator
v1.1.0
Published
Babel's asyncToGenerator helper as a standalone package
Downloads
268
Readme
async-to-generator
This is Babel's asyncToGenerator
helper without any dependencies. When used in combination with babel-plugin-transform-async-to-module-method
, it serves as an alternative to using babel-plugin-transform-runtime
– which carries with it core-js
and attempts to polyfill Promise
.
Usage
Add the babel-plugin-transform-async-to-module-method
transform, and in your .babelrc
:
{
"plugins": [
["transform-async-to-module-method", {
"module": "async-to-generator",
"method": "default"
}]
]
}