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

/async-to-generator/

    Package Sidebar

    Install

    npm i async-to-generator

    Weekly Downloads

    85

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • zertosh