From af13f7ba0bf2ddc79d043ee17c51843542ca98f4 Mon Sep 17 00:00:00 2001 From: amsyarasyiq <82711525+amsyarasyiq@users.noreply.github.com> Date: Fri, 9 Feb 2024 09:59:22 +0800 Subject: [PATCH] fix(scripts): fix --serve and set "const and let" as unsupported --- build.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.mjs b/build.mjs index 64986ac..9766035 100644 --- a/build.mjs +++ b/build.mjs @@ -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: {