Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 714 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 714 Bytes

Rollup Async functions plugin

Build Status

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(...);