The @babel/plugin-transform-for-of Babel plugin transforms ES2015 for...of loops into ES5-compatible code. It enables developers to use modern JavaScript syntax while ensuring compatibility with older browsers and environments. By converting the for...of loop, which iterates over iterable objects (like arrays, strings, and iterators), into a more verbose but widely supported equivalent, this plugin helps maintain broad compatibility without sacrificing developer productivity. This transformation increases code size marginally but offers significant gains in backward compatibility.
The @babel/plugin-transform-for-of package saw consistent releases from 2018 to 2024, with varying frequency each month. Release peaked in January 2020 with 3 versions. There have been releases in February and April of 2025, but no releases since.
@babel/plugin-transform-for-of downloads show a generally increasing trend from March 2024 to July 2025, peaking at over 140 million. August 2025 saw a decrease, and September 2025 (incomplete data) shows a significant drop, likely due to the month not being finished yet.