
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
rollup-plugin-regenerator
Advanced tools
A Rollup.js plugin to transform ECMAScript 6 generator and async functions
A Rollup.js plugin to transform ECMAScript 6 generator and async functions.
This Rollup plugin will replace async and generator functions with ES5 Promise based functions.
Plugin using regenerator module.
rollup-plugin-nodent -
Convert ES2017 async/await with nodent.npm install --save-dev rollup-plugin-regenerator
or with yarn
yarn add -D rollup-plugin-regenerator
var rollup = require('rollup').rollup;
var regenerator = require('rollup-plugin-regenerator');
rollup({
input: 'my-entry.js',
context: 'window', // or 'global' for Node.js
plugins: [
regenerator()
]
}).then(...);
includeRuntime: If false - do not include 'regeneratorRuntime()' polyfill (optional).sourceMap: If false - forced disable source maps generating (optional).include, exclude: A minimatch pattern, or an array of minimatch patterns of including ID, or excluding ID (optional).The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten. Just specify context option in Rollup input options(as shown above).regenerator uses babel for transformations, so it's better to use it as a babel plugin.git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureLicensed under MIT license.
FAQs
A Rollup.js plugin to transform ECMAScript 6 generator and async functions
The npm package rollup-plugin-regenerator receives a total of 312 weekly downloads. As such, rollup-plugin-regenerator popularity was classified as not popular.
We found that rollup-plugin-regenerator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.