@babel/plugin-transform-block-scoped-functions transforms block-scoped function declarations into variable declarations. This ensures compatibility with older JavaScript environments that don't fully support ES6 block scoping for functions. By converting these functions into var declarations, the plugin prevents potential hoisting issues and preserves the expected behavior across different JavaScript engines, facilitating wider browser support for modern code.
The npm package @babel/plugin-transform-block-scoped-functions has had sporadic releases since August 2018. There were periods of high activity, like 2020 and 2021, followed by quieter periods. 2024 saw a moderate number of releases, while 2025 has had releases in January and April. No releases have occurred in the last four months.
@babel/plugin-transform-block-scoped-functions downloads show a general upward trend from March 2024 to July 2025, peaking at 137 million. August 2025 saw a slight decrease. September 2025 downloads are significantly lower, likely due to incomplete monthly data.