Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leebyron/rollup-plugin-async
Transforms Async functions to generator functions before bundling.
https://github.com/leebyron/rollup-plugin-async
Last synced: about 2 months ago
JSON representation
Transforms Async functions to generator functions before bundling.
- Host: GitHub
- URL: https://github.com/leebyron/rollup-plugin-async
- Owner: leebyron
- Created: 2016-08-11T22:07:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-13T03:28:21.000Z (over 7 years ago)
- Last Synced: 2024-04-14T05:13:55.245Z (8 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 40
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - async - Replace `async` functions with generators. (Plugins / Transpilation)
README
Rollup Async functions plugin
=============================[![Build Status](https://travis-ci.org/leebyron/rollup-plugin-async.svg?branch=master)](https://travis-ci.org/leebyron/rollup-plugin-async)
This [Rollup](http://rollupjs.org/) plugin will replace [async functions](https://tc39.github.io/ecmascript-asyncawait/) with generator functions that can run in
modern browsers or in most versions of node.js during bundling using [`async-to-gen`](https://github.com/leebyron/async-to-gen).## Install
```
npm install --save rollup-plugin-async
``````js
var rollup = require('rollup').rollup;
var async = require('rollup-plugin-async');rollup({
entry: 'main.js',
plugins: [ async() ]
}).then(...);
```