···7474 replace.type === undefined ||
7575 replace.type === PatchReplaceType.Normal
7676 ) {
7777+ // Add support for \i to match rspack's minified names
7878+ if (typeof replace.match !== "string") {
7979+ replace.match = new RegExp(
8080+ replace.match.source.replace(/\\i/g, "[A-Za-z_$][\\w$]*"),
8181+ replace.match.flags
8282+ );
8383+ }
7784 // tsc fails to detect the overloads for this, so I'll just do this
7885 // Verbose, but it works
7986 let replaced;