diff --git a/packages/sitecore-jss-manifest/src/generator/pipelines/generateManifest/expandReferencedContent.ts b/packages/sitecore-jss-manifest/src/generator/pipelines/generateManifest/expandReferencedContent.ts index 0cc3a3c3e1..7b51758a3c 100644 --- a/packages/sitecore-jss-manifest/src/generator/pipelines/generateManifest/expandReferencedContent.ts +++ b/packages/sitecore-jss-manifest/src/generator/pipelines/generateManifest/expandReferencedContent.ts @@ -13,7 +13,7 @@ function expandReferencedContent(manifest: ManifestInstance) { const idMap = createIdMapping(manifest); // we expand copy: true ID references to be a copy of the original - idMap.usages.forEach((idReference) => { + idMap.usages.reverse().forEach((idReference) => { expandedItems = true; const source = idMap.ids.get(idReference.id);