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
: