Revert "Revert "Switch kRegex to use RegExp with u directly"" (#15644)

* Revert "Revert "Switch `kRegex` to use RegExp with `u` directly" (#15643)"

This reverts commit 52375f57eb.
This commit is contained in:
fisker Cheung authored and GitHub committed 2024-06-14 23:21:29 +08:00
1 parent 57253de199
commit ccde7ca268
3 files changed
+8 -11

No files matched your search

+4
View File
@@ -258,6 +258,10 @@ function getEsbuildOptions({ file, files, shouldCollectLicenses, cliOptions }) {
outfile: path.join(DIST_DIR, cliOptions.saveAs ?? file.output.file),
// https://esbuild.github.io/api/#main-fields
mainFields: file.platform === "node" ? ["module", "main"] : undefined,
supported: {
// https://github.com/evanw/esbuild/issues/3471
"regexp-unicode-property-escapes": true,
},
};
if (file.platform === "universal") {