Build: stop transforming optional chaining (#17863)
This commit is contained in:
1 parent
8643c8ff89
commit
c2623bc6a0
1 file changed
+2
@@ -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",
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user