support safari 10/11 in terser

pull/9320/head
Jean P 2021-06-30 14:55:19 +02:00
parent 6c8e389a16
commit 000f6699cd
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@ def main(args):
def terser(js):
p = subprocess.Popen(["yarn", "run", "--silent", "terser", "--mangle", "--compress"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=sys.stderr)
p = subprocess.Popen(["yarn", "run", "--silent", "terser", "--mangle", "--compress", "--safari10"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=sys.stderr)
stdout, stderr = p.communicate(js.encode("utf-8"))
if p.returncode != 0:
sys.exit(p.returncode)

View File

@ -17,6 +17,7 @@ module.exports = targets => {
name: target.name,
plugins: [
terser({
safari10: true,
output: {
comments: false,
},