Skip to content

@ui5/builder/processors/bundlers/flexChangesBundler ​

Methods ​

(static) default(parameters) → {Promise<FlexChangesBundlerResult>}
​

Description: Bundles all supplied changes.

Source: builder/lib/processors/bundlers/flexChangesBundler.js, line 25

Parameters: ​
NameTypeDescription
parametersobjectParameters
Properties:
NameTypeAttributesDefaultDescription
resourcesArray<@ui5/fs/Resource>List of resources to be processed
optionsobjectOptions
Properties
NameTypeDescription
pathPrefixstringPrefix for bundle path
hasFlexBundleVersionbooleantrue if minUI5Version >= 1.73
and create flexibility-bundle.json
existingFlexBundleobjectoptional{}Object with existing flexibility-bundle.json
to merge with new changes
Returns: ​

Promise resolving with an object containing the flexBundle flag and the created flex changes bundle resources

Type: Promise<FlexChangesBundlerResult>

Type Definitions ​

FlexChangesBundlerResult
​

Description: Result of the flex changes bundling process.

Source: builder/lib/processors/bundlers/flexChangesBundler.js, line 11

Properties: ​
NameTypeDescription
flexBundleboolean \| undefinedFlag indicating whether a flexibility bundle was created.
- `true`: a flexibility bundle was created and at least one annotation change is included
- `undefined`: a flexibility bundle was created, but does not contain any annotation change,
so the client should not enforce an early dedicated loading of the bundle
- `false`: no flexibility bundle was created (no changes to bundle, e.g. only filtered
app-descriptor changes were provided)
bundleResourcesArray<@ui5/fs/Resource>List of created flex changes bundle resources

Result of the flex changes bundling process.

Type: ​
  • object