fix(scripts): fix --serve and set "const and let" as unsupported
This commit is contained in:
parent
06c2b51881
commit
af13f7ba0b
1 changed files with 5 additions and 0 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue