1.1.0 • Published 7 years ago
async-to-generator v1.1.0
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"
}]
]
}