Correct Terser ECMA option (#16518)

This commit is contained in:
Steve Repsher
2023-05-15 03:54:59 -04:00
committed by GitHub
parent aa063d0a3e
commit eabd8b54f4

View File

@@ -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,
});