From eabd8b54f410b90c0c032c8422e04fa888fbad9f Mon Sep 17 00:00:00 2001 From: Steve Repsher Date: Mon, 15 May 2023 03:54:59 -0400 Subject: [PATCH] Correct Terser ECMA option (#16518) --- build-scripts/bundle.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-scripts/bundle.cjs b/build-scripts/bundle.cjs index 43821a7456..f56a9037c1 100644 --- a/build-scripts/bundle.cjs +++ b/build-scripts/bundle.cjs @@ -76,7 +76,7 @@ module.exports.htmlMinifierOptions = { module.exports.terserOptions = ({ latestBuild, isTestBuild }) => ({ safari10: !latestBuild, - ecma: latestBuild ? undefined : 5, + ecma: latestBuild ? 2015 : 5, format: { comments: false }, sourceMap: !isTestBuild, });