fix(scripts): fix --serve and set "const and let" as unsupported

This commit is contained in:
amsyarasyiq 2024-02-09 09:59:22 +08:00
parent 06c2b51881
commit af13f7ba0b

View file

@ -23,6 +23,11 @@ try {
minify: isRelease,
format: "iife",
target: "esnext",
supported: {
// Hermes does not actually supports const and let, even though it syntactically
// accepts it, but it's treated just like 'var' and causes issues
"const-and-let": false
},
outfile: "dist/pyondetta.js",
keepNames: true,
define: {