rollup-plugin-async
v1.2.0
Published
Transforms Async functions to generator functions before bundling.
Downloads
5,808
Maintainers
Readme
Rollup Async functions plugin
This Rollup plugin will replace async functions with generator functions that can run in
modern browsers or in most versions of node.js during bundling using async-to-gen
.
Install
npm install --save rollup-plugin-async
var rollup = require('rollup').rollup;
var async = require('rollup-plugin-async');
rollup({
entry: 'main.js',
plugins: [ async() ]
}).then(...);