async-to-generator

1.1.0 • Public • Published

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"
    }]
  ]
}

Package Sidebar

Install

npm i async-to-generator

Weekly Downloads

32

Version

1.1.0

License

MIT

Last publish

Collaborators

  • zertosh