You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/builder/builder.js
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,8 @@ function getElapsedTime(startTime) {
38
38
* @private
39
39
* @param {object} parameters
40
40
* @param {boolean} parameters.dev Sets development mode, which only runs essential tasks
41
-
* @param {boolean} parameters.selfContained True if a the build should be self-contained or false for prelead build bundles
41
+
* @param {boolean} parameters.selfContained
42
+
* True if a the build should be self-contained or false for prelead build bundles
42
43
* @param {boolean} parameters.jsdoc True if a JSDoc build should be executed
43
44
* @param {Array} parameters.includedTasks Task list to be included from build
44
45
* @param {Array} parameters.excludedTasks Task list to be excluded from build
@@ -207,9 +208,13 @@ module.exports = {
207
208
* @param {string} parameters.destPath Target path
208
209
* @param {boolean} [parameters.cleanDest=false] Decides whether project should clean the target path before build
209
210
* @param {boolean} [parameters.buildDependencies=false] Decides whether project dependencies are built as well
210
-
* @param {Array.<string|RegExp>} [parameters.includedDependencies=[]] List of build dependencies to be included if buildDependencies is true
211
-
* @param {Array.<string|RegExp>} [parameters.excludedDependencies=[]] List of build dependencies to be excluded if buildDependencies is true. If the wildcard '*' is provided, only the included dependencies will be built.
212
-
* @param {boolean} [parameters.dev=false] Decides whether a development build should be activated (skips non-essential and time-intensive tasks)
thrownewError("There are some control variant changes in the changes folder. This only works with a minUI5Version 1.73.0. Please update the minUI5Version in the manifest.json to 1.73.0 or higher");
* <code>provided</code>: A section of mode 'provided' defines a set of modules that should not be included in the bundle file itself, but
14
-
which should be assumed to be already loaded (or 'provided') by the environment into which the bundle module is loaded.
13
+
* <code>provided</code>: A section of mode 'provided' defines a set of modules that should not be included in
14
+
* the bundle file itself, but which should be assumed to be already loaded (or 'provided') by the environment into
15
+
* which the bundle module is loaded.
15
16
* </li>
16
17
* <li>
17
-
<code>raw</code>: A raw section determines the set of modules that should be embedded,
18
-
sorts them according to their dependencies and writes them out 1:1 without any transformation or wrapping (raw). Only JavaScript sources
19
-
can be embedded in a raw section.
20
-
</li>
18
+
* <code>raw</code>: A raw section determines the set of modules that should be embedded, sorts them according
19
+
* to their dependencies and writes them out 1:1 without any transformation or wrapping (raw). Only JavaScript
20
+
* sources can be embedded in a raw section.
21
+
* </li>
21
22
* <li>
22
-
<code>preload</code>: A preload section packages resources that should be stored in the preload cache in the client.
23
-
They can embed any textual resource type (JavaScript, XML, JSON and .properties files) that the bundling supports.
24
-
UI5 modules are wrapped into a 'sap.ui.predefine' call. Other JavaScript modules will be embedded into a 'jQuery.sap.registerPreload' call, unless the
25
-
asynchronous ui5loader is used. With the ui5loader 'sap.ui.require.preload' is used for other modules.
26
-
</li>
23
+
* <code>preload</code>: A preload section packages resources that should be stored in the preload cache in the
24
+
* client. They can embed any textual resource type (JavaScript, XML, JSON and .properties files) that the
25
+
* bundling supports. UI5 modules are wrapped into a 'sap.ui.predefine' call. Other JavaScript modules will be
26
+
* embedded into a 'jQuery.sap.registerPreload' call, unless the asynchronous ui5loader is used. With the
27
+
* ui5loader 'sap.ui.require.preload' is used for other modules.
28
+
* </li>
27
29
* <li>
28
-
<code>require</code>: A 'require' section is transformed into a sequence of jQuery.sap.require calls. The list will be resolved like an include pattern list
29
-
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 used instead.
30
-
</li>
30
+
* <code>require</code>: A 'require' section is transformed into a sequence of jQuery.sap.require calls. The
31
+
* list will be resolved like an include pattern list in any of the other sections and for each of the resolved
32
+
* modules, a jQuery.sap.require will be created. In case the ui5loader is available, 'sap.ui.requireSync' is
33
+
* used instead.
34
+
* </li>
31
35
* </ul>
32
36
* </p>
33
37
*
34
38
* @public
35
39
* @typedef {object} ModuleBundleDefinitionSection
36
40
* @property {string} mode The embedding mode. Either 'provided', 'raw', 'preload' or 'require'
37
-
* @property {string[]} filters List of modules declared as glob patterns (resource name patterns) that should be in- or excluded.
38
-
* A pattern either contains of a trailing slash '/' or single '*' and double '**' asterisks which denote an arbitrary number of characters or folder names.
39
-
* Exludes should be marked with a leading exclamation mark '!'. The order of filters is relevant, a later exclusion overrides an earlier inclusion and vice versa.
41
+
* @property {string[]} filters List of modules declared as glob patterns (resource name patterns) that should be
42
+
* in- or excluded.
43
+
* A pattern either contains of a trailing slash '/' or single '*' and double '**' asterisks which denote an
44
+
* arbitrary number of characters or folder names.
45
+
* Exludes should be marked with a leading exclamation mark '!'. The order of filters is relevant, a later
46
+
* exclusion overrides an earlier inclusion and vice versa.
40
47
* @example <caption>List of modules as glob patterns that should be in- or excluded</caption>
41
48
* // Includes everything from "some/path/to/module/",
42
49
* // but excludes the subfolder "some/path/to/module/to/be/excluded/"
* @property {boolean} [resolve=false] Whether (transitive) dependencies of modules that match the given filters should be resolved
51
-
*and added to the module set
57
+
* @property {boolean} [resolve=false] Whether (transitive) dependencies of modules that match the given filters
58
+
* should be resolved and added to the module set
52
59
* @property {boolean} [resolveConditional=false] Whether conditional dependencies of modules should be resolved
53
60
* and added to the module set for this section
54
61
* @property {boolean} [renderer=false] Whether renderers for controls should be added to the module set
55
-
* @property {boolean} [declareRawModules=false] Whether raw modules should be declared after jQuery.sap.global became available. With the usage of the ui5loader, this flag should be set to 'false'
62
+
* @property {boolean} [declareRawModules=false] Whether raw modules should be declared after jQuery.sap.global
63
+
* became available. With the usage of the ui5loader, this flag should be set to 'false'
56
64
* @property {boolean} [sort=true] Whether the modules should be sorted by their dependencies
* @property {boolean} [usePredefineCalls=false] If set to 'true', sap.ui.predefine is used for UI5 modules
81
89
* @property {number} [numberOfParts=1] The number of parts the module bundle should be splitted
82
-
* @property {boolean} [ignoreMissingModules=false] When searching for modules which are optional for further processing, do not throw in case they are missing
90
+
* @property {boolean} [ignoreMissingModules=false] When searching for modules which are optional for further
91
+
* processing, do not throw in case they are missing
0 commit comments