From 000f6699cd8d8cf154392f04a6aa00e80ad110b4 Mon Sep 17 00:00:00 2001 From: Jean P Date: Wed, 30 Jun 2021 14:55:19 +0200 Subject: [PATCH] support safari 10/11 in terser --- bin/gen/timeago-to-scala.py | 2 +- ui/@build/rollupProject/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/gen/timeago-to-scala.py b/bin/gen/timeago-to-scala.py index 3b7fdd6f91..1982c9a502 100755 --- a/bin/gen/timeago-to-scala.py +++ b/bin/gen/timeago-to-scala.py @@ -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) diff --git a/ui/@build/rollupProject/index.js b/ui/@build/rollupProject/index.js index 70c22180df..13ab8336c8 100644 --- a/ui/@build/rollupProject/index.js +++ b/ui/@build/rollupProject/index.js @@ -17,6 +17,7 @@ module.exports = targets => { name: target.name, plugins: [ terser({ + safari10: true, output: { comments: false, },