Correct Terser ECMA option (#16518)
This commit is contained in:
parent
aa063d0a3e
commit
eabd8b54f4
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue