From 7a266fd48d6452ce7f6180b026109d47caf195ec Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Wed, 19 Dec 2018 14:35:41 +0100 Subject: [PATCH] [FIX] generateLibraryPreload: Fix sap-ui-core.js bootstrap - Missing sap-ui-optimized flag prevented load of preloads - Missing debug try-catch wrapper prevented use of debug mode --- lib/tasks/bundlers/generateLibraryPreload.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/tasks/bundlers/generateLibraryPreload.js b/lib/tasks/bundlers/generateLibraryPreload.js index a9da1310f..54de2ac70 100644 --- a/lib/tasks/bundlers/generateLibraryPreload.js +++ b/lib/tasks/bundlers/generateLibraryPreload.js @@ -109,6 +109,12 @@ module.exports = function({workspace, dependencies, options}) { p = moduleBundler({ options: { + bundleOptions: { + optimize: true, + decorateBootstrapModule: true, + addTryCatchRestartWrapper: true, + usePredefineCalls: true + }, bundleDefinition: { name: "sap-ui-core.js", sections: [