From a577bc54f07fdb4cc6deef2d21cf204119b26f2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 9 Feb 2021 12:27:44 +0100 Subject: [PATCH] Set optimize to 'none' for r.js This was forgotten to commit while adjusting extra/*. see e9fa719f372fb3aeb2fa1c1579699164f2ca7fe6 see #3952 --- .../install/files/js/require.build-acp.js | 3 +-- wcfsetup/install/files/js/require.build.js | 22 +------------------ 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/wcfsetup/install/files/js/require.build-acp.js b/wcfsetup/install/files/js/require.build-acp.js index a897786073..e54e8fa82a 100644 --- a/wcfsetup/install/files/js/require.build-acp.js +++ b/wcfsetup/install/files/js/require.build-acp.js @@ -6,8 +6,7 @@ out: "WCF.ACP.min.js", useStrict: true, preserveLicenseComments: false, - optimize: 'uglify2', - uglify2: {}, + optimize: 'none', excludeShallow: [ 'WoltLabSuite/_Meta' ], diff --git a/wcfsetup/install/files/js/require.build.js b/wcfsetup/install/files/js/require.build.js index 73eb20deb7..fbe4abebb8 100644 --- a/wcfsetup/install/files/js/require.build.js +++ b/wcfsetup/install/files/js/require.build.js @@ -5,27 +5,7 @@ out: "WoltLabSuite.Core.min.js", useStrict: true, preserveLicenseComments: false, - optimize: 'uglify2', - uglify2: { - compress: { - sequences: true, - properties: true, - dead_code: true, - conditionals: true, - comparisons: true, - booleans: true, - loops: true, - hoist_funs: true, - hoist_vars: true, - if_return: true, - join_vars: true, - cascade: true, - /* this is basically the `--define` argument */ - global_defs: { - COMPILER_TARGET_DEFAULT: true - } - } - }, + optimize: 'none', paths: { "requireLib": "require", -- 2.20.1