From 6b67a14b72aa5adf5a88d6e9d5c0f7f148e9cb06 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Fri, 12 Jul 2024 10:22:01 +0300 Subject: [PATCH] Add docs about async flag in moduleBundler --- lib/processors/bundlers/moduleBundler.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/processors/bundlers/moduleBundler.js b/lib/processors/bundlers/moduleBundler.js index 028a9d3b8..b453b2966 100644 --- a/lib/processors/bundlers/moduleBundler.js +++ b/lib/processors/bundlers/moduleBundler.js @@ -35,8 +35,11 @@ const log = getLogger("builder:processors:bundlers:moduleBundler"); *
  • * require: A 'require' section is transformed into a sequence of jQuery.sap.require calls. The * list will be resolved like an include pattern list in any of the other sections and for each of the resolved - * modules, a jQuery.sap.require will be created. In case the ui5loader is available, 'sap.ui.requireSync' is + * modules, a jQuery.sap.require will be created. In case the ui5loader is available, 'sap.ui.require' is * used instead. + * With specVersion: 4.0 this module comes with an `async` flag. When set to false, the modules + * will be loaded using `sap.ui.requireSync` instead of `sap.ui.require`. + * **Note:** `sap.ui.requireSync` API is not available in UI5 version 2.x. *
  • *
  • * bundleInfo: A 'bundleInfo' section describes the content of another named bundle. This information