From 864cdd5ec702bfaa1d27769d6d79e042967772d8 Mon Sep 17 00:00:00 2001 From: mirabilos Date: Fri, 10 Jan 2025 22:49:03 +0100 Subject: [PATCH] add some compatibility options to uglifyjs: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • --v8 and --webkit for improved browser support, we will skip on --ie though I think • --no-module which is undocumented but may work around https://github.com/mishoo/UglifyJS/issues/5967 --- scripts/build-js.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build-js.sh b/scripts/build-js.sh index 9f8547be..e2b44c57 100755 --- a/scripts/build-js.sh +++ b/scripts/build-js.sh @@ -110,6 +110,7 @@ rm -rf src ../scripts/smap-out.py dygraph.min.tmp.js /dev/null dygraph.min.tmp.js.map uglifyjs \ + --no-module --v8 --webkit \ --compress \ --mangle \ --output-opts "preamble='$header'" \