Skip to main content

transformManifest

Apply explicit patches while retaining unrelated manifest fields and module identities.

Import​

import { transformManifest } from '@bedrock-core/builder/manifest';

Signature​

function transformManifest(input: unknown, overrides: ManifestOverrides): JsonObject;

Parameters​

ParameterTypeDefaultDescription
inputunknown—Source data accepted by this operation
overridesManifestOverrides—Header, metadata, dependency and existing module-UUID patches

Returns​

A cloned manifest with recursive object patches and replaced arrays.

Notes​

Module patches must reference existing UUIDs. scriptEntry requires exactly one script module.

This standalone helper transforms an explicit document. The built-in manifest stage selects files with manifestPath and resolves their extends chains.