The @babel/plugin-transform-sticky-regex Babel plugin transforms sticky regex flags (/y) into non-sticky regexes with equivalent behavior. It rewrites regular expressions to ensure compatibility with older JavaScript environments that lack native sticky regex support. This allows developers to utilize the expressive power of sticky flags in their code while maintaining broader browser compatibility. The transformation achieves this by inserting appropriate checks and adjustments to the regex matching process. Resulting in functionally identical behavior across different JavaScript engines.
The @babel/plugin-transform-sticky-regex package saw sporadic releases between August 2018 and August 2025. The releases were most frequent in 2020 and 2021, with a few months having multiple versions. After October 2024, there has only been one release, which was in April 2025.
@babel/plugin-transform-sticky-regex downloads show a fluctuating but overall upward trend from March 2024 to August 2025, peaking in June 2025. September 2025 data is incomplete and significantly lower, likely reflecting the partial month.