pass --jitless to node when minifying js code to avoid random crashes

idea from volker@
This commit is contained in:
robert
2026-04-18 15:09:54 +00:00
parent a9daabd464
commit be08587ebf
3 changed files with 36 additions and 0 deletions
@@ -0,0 +1,12 @@
Index: ui/webui/resources/tools/minify_js.py
--- ui/webui/resources/tools/minify_js.py.orig
+++ ui/webui/resources/tools/minify_js.py
@@ -32,7 +32,7 @@ def main(argv):
# Spawn a NodeJS script to use the programmatic Terser API, since the CLI API
# does not allow compressing multiple files at once. This is done to avoid
# launching NodeJS once for every input file.
- node.RunNode([
+ node.RunNode(['--jitless',
os.path.join(_HERE_PATH, 'minify_js.js'), '--in_folder', in_path,
'--out_folder', out_path
] + args.in_files)
@@ -0,0 +1,12 @@
Index: ui/webui/resources/tools/minify_js.py
--- ui/webui/resources/tools/minify_js.py.orig
+++ ui/webui/resources/tools/minify_js.py
@@ -32,7 +32,7 @@ def main(argv):
# Spawn a NodeJS script to use the programmatic Terser API, since the CLI API
# does not allow compressing multiple files at once. This is done to avoid
# launching NodeJS once for every input file.
- node.RunNode([
+ node.RunNode(['--jitless',
os.path.join(_HERE_PATH, 'minify_js.js'), '--in_folder', in_path,
'--out_folder', out_path
] + args.in_files)
@@ -0,0 +1,12 @@
Index: ui/webui/resources/tools/minify_js.py
--- ui/webui/resources/tools/minify_js.py.orig
+++ ui/webui/resources/tools/minify_js.py
@@ -32,7 +32,7 @@ def main(argv):
# Spawn a NodeJS script to use the programmatic Terser API, since the CLI API
# does not allow compressing multiple files at once. This is done to avoid
# launching NodeJS once for every input file.
- node.RunNode([
+ node.RunNode(['--jitless',
os.path.join(_HERE_PATH, 'minify_js.js'), '--in_folder', in_path,
'--out_folder', out_path
] + args.in_files)