babel-plugin-transform-regenerator enables the use of ES2015 generators in legacy environments. This Babel plugin leverages the regenerator library to transform generator functions into ES5-compatible code. By converting yield statements into state machine logic, it ensures generators execute correctly even in browsers or Node.js versions lacking native support. This allows developers to use modern JavaScript features while maintaining broader compatibility for their applications. A crucial tool for progressive enhancement strategies in JavaScript development.
The npm package babel-plugin-transform-regenerator had frequent releases from October 2015 to December 2017. The period with the most releases was between October 2015 and January 2016. After August 2017, the package saw no new releases, with the last recorded activity in August 2017. Since then, there have been no releases until September 12, 2025.
Babel-plugin-transform-regenerator npm package downloads show fluctuating interest. Downloads remained relatively stable around 6 million from March 2024 to May 2025, with occasional spikes. Notably, there were significant increases in November 2024 and again in June and July 2025, before dipping in August 2025.