@babel/plugin-transform-block-scoping enables transformation of const and let declarations into var declarations, ensuring compatibility with older JavaScript environments that lack block scoping. By converting block-scoped variables to function-scoped variables, this Babel plugin prevents runtime errors and maintains functionality in browsers or Node.js versions without native support for ES6 block scoping. It's essential for transpiling modern JavaScript code for broad compatibility.
The @babel/plugin-transform-block-scoping package saw frequent releases between 2018 and 2024, with peaks in late 2022. Release frequency decreased in 2023 and in 2025. The versions 7.x were released periodically, with more concentrated periods of releases and some months with no releases. The latest version available is 7.28.0, released in July 2025.
@babel/plugin-transform-block-scoping downloads exhibited strong growth from March 2024 to June 2025, peaking at 142 million. Downloads remained high through August 2025, before a significant drop in September 2025; this decline should be interpreted cautiously due to incomplete data for the current month.