Rollup plugin that transforms async/await functions into generator functions during bundling using async-to-gen. Current stable version 1.2.0, last released circa 2017. Low release cadence. Differentiator: enables async/await in environments without native support by converting to generators at build time. Alternative to Babel's async-to-generator transform with tighter Rollup integration. Depends on async-to-gen (v1.2.0+). No longer actively maintained; users should consider @rollup/plugin-babel with @babel/plugin-transform-async-to-generator.
npm install rollup-plugin-asyncVerified import paths — ran on the pinned version, not inferred.
Shows how to use rollup-plugin-async in a Rollup config to transform async functions in input.js.
Replace with @rollup/plugin-babel configuration.
Test with your specific async patterns. Consider migrating to Babel if issues arise.
Upgrade to version 1.2.0 or later.
Run `npm install rollup-plugin-async --save-dev`.
Use `const async = require('rollup-plugin-async');` then call `async()`.Run `npm install async-to-gen` or check your package-lock.