{"library":"rollup-plugin-async","title":"rollup-plugin-async","description":"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.","language":"javascript","status":"deprecated","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-async"],"cli":null},"imports":["import async from 'rollup-plugin-async'","const async = require('rollup-plugin-async')","import async from 'rollup-plugin-async'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport async from 'rollup-plugin-async';\n\nrollup({\n  input: 'input.js',\n  plugins: [async()]\n}).then(bundle => bundle.write({ file: 'output.js', format: 'iife' }));","lang":"javascript","description":"Shows how to use rollup-plugin-async in a Rollup config to transform async functions in input.js.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}