@ui5/builder/processors/bundlers/flexChangesBundler

Methods

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

Description:
  • Bundles all supplied changes.
Source:
Parameters:
Name Type Description
parameters object Parameters
Properties
Name Type Attributes Default Description
resources Array.<@ui5/fs/Resource> List of resources to be processed
options object Options
Properties
Name Type Description
pathPrefix string Prefix for bundle path
hasFlexBundleVersion boolean true if minUI5Version >= 1.73 and create flexibility-bundle.json
existingFlexBundle object <optional>
{} 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:
Properties:
Name Type Description
flexBundle boolean | undefined Flag 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)
bundleResources Array.<@ui5/fs/Resource> List of created flex changes bundle resources
Result of the flex changes bundling process.
Type:
  • object