Build: stop transforming class private fields (#18128)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-10-27 20:23:01 +08:00
1 parent 912342210d
commit eca8348812
1 file changed
+4
+4
View File
@@ -223,6 +223,10 @@ function getEsbuildOptions({ packageConfig, file, cliOptions }) {
"regexp-unicode-property-escapes": true,
// Maybe because Node.js v14 doesn't support "spread parameters after optional chaining" https://node.green/
"optional-chain": true,
// Maybe because https://github.com/evanw/esbuild/pull/3167?
"class-field": true,
"class-private-field": true,
"class-private-method": true,
},
packages: "bundle",
};