babel-plugin-transform-es2015-block-scoped-functions transforms ES2015 block-scoped functions into ES5-compatible code. This Babel plugin ensures that functions declared within blocks (e.g., if statements, for loops) are properly hoisted and scoped, preventing unexpected behavior in older JavaScript environments. It handles the complexities of ES6 function scoping, contributing to cross-browser compatibility when transpiling modern JavaScript. Using this plugin allows for safer and more predictable execution of block-scoped functions in legacy browsers.
The npm package babel-plugin-transform-es2015-block-scoped-functions experienced frequent releases from October 2015 to March 2016, with a peak in November 2015. Releases became infrequent thereafter, with a single release in May 2016, January 2017 and no releases since then. As of August 15, 2025, there have been no new versions published in over eight years.
Babel-plugin-transform-es2015-block-scoped-functions downloads peaked in November 2024 at over 10 million. Downloads remained relatively stable around 6 million in early 2025. There was a noticiable increase in Jun and Jul of 2025. August 2025 downloads are incomplete and show a sharp decrease.