{"library":"rollup-regenerator-runtime","title":"rollup-regenerator-runtime","description":"Provides the regenerator runtime as a self-contained module for bundling with Rollup. Version 6.23.1 is the latest stable release. It replaces the default babel-runtime regenerator import with a local copy, avoiding external dependencies when using async/await and generators in libraries compiled with Rollup. Key differentiator: allows bundling regenerator runtime without requiring the full babel-runtime package, reducing bundle size and avoiding issues with Rollup's module resolution.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-regenerator-runtime"],"cli":null},"imports":["import 'rollup-regenerator-runtime';","import 'rollup-regenerator-runtime';","require('rollup-regenerator-runtime');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// .babelrc\n{\n  \"plugins\": [\n    \"transform-regenerator\",\n    [\"transform-runtime\", {\n      \"helpers\": false,\n      \"polyfill\": false,\n      \"regenerator\": true,\n      \"moduleName\": \"rollup-regenerator-runtime\"\n    }]\n  ]\n}\n\n// In your entry file (must be imported before any async/await or generators)\nimport 'rollup-regenerator-runtime';","lang":"javascript","description":"Shows Babel configuration to replace babel-runtime regenerator with rollup-regenerator-runtime, and the import needed in the entry file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}