From: Tim Düsterhus Date: Tue, 9 Feb 2021 11:27:44 +0000 (+0100) Subject: Set optimize to 'none' for r.js X-Git-Tag: 5.4.0_Alpha_1~292 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a577bc54f07fdb4cc6deef2d21cf204119b26f2a;p=GitHub%2FWoltLab%2FWCF.git Set optimize to 'none' for r.js This was forgotten to commit while adjusting extra/*. see e9fa719f372fb3aeb2fa1c1579699164f2ca7fe6 see #3952 --- 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",