@babel/plugin-transform-unicode-regex transforms Unicode regexes to ES5-compatible expressions. This plugin ensures that regular expressions using Unicode features, like Unicode property escapes (\p{}) and named groups, function correctly in environments that don't natively support them. It analyzes regex patterns and rewrites them to use surrogate pairs and other ES5-compatible methods, maintaining functionality across older JavaScript engines. This is crucial for projects targeting legacy browsers or environments.
The @babel/plugin-transform-unicode-regex npm package exhibits sporadic release frequency. Releases occurred in August and December 2018, followed by more frequent releases in 2019 and 2020. The releases became less frequent from 2021-2024, with only a few months having releases per year. There have been no releases between August 2025 and today, September 12, 2025.
@babel/plugin-transform-unicode-regex downloads surged in 2024, peaking above 100 million from July to November. 2025 saw continued high downloads, exceeding 133 million in June, before a significant drop in September, which is incomplete data for the current month.