Build: stop transforming optional chaining (#17863)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-09-12 01:35:29 +08:00
1 parent 8643c8ff89
commit c2623bc6a0
1 file changed
+2
+2
View File
@@ -255,6 +255,8 @@ function getEsbuildOptions({ packageConfig, file, cliOptions }) {
supported: {
// https://github.com/evanw/esbuild/issues/3471
"regexp-unicode-property-escapes": true,
// Maybe because Node.js v14 doesn't support "spread parameters after optional chaining" https://node.green/
"optional-chain": true,
},
packages: "bundle",
};