diff --git a/crates/oxc_transformer/src/regexp/mod.rs b/crates/oxc_transformer/src/regexp/mod.rs index 8d0b63352d878..53a992bfc555a 100644 --- a/crates/oxc_transformer/src/regexp/mod.rs +++ b/crates/oxc_transformer/src/regexp/mod.rs @@ -39,6 +39,10 @@ //! #### Set notation + properties of strings (`v`) //! - @babel/plugin-transform-unicode-sets-regex: //! - TC39 Proposal: +//! +//! TODO(improve-on-babel): We could convert to plain `RegExp(...)` instead of `new RegExp(...)`. +//! TODO(improve-on-babel): When flags is empty, we could output `RegExp("(?<=x)")` instead of `RegExp("(?<=x)", "")`. +//! (actually these would be improvements on ESBuild, not Babel) use std::borrow::Cow;