Skip to content

Commit 92882ec

Browse files
authored
feat(manifest): initialize manifest with required properties from stats (#3718)
1 parent cdd39e8 commit 92882ec

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.changeset/chilled-plums-arrive.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/manifest': patch
3+
---
4+
5+
feat: initialize manifest with required properties from stats

packages/manifest/src/ManifestManager.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,16 @@ class ManifestManager {
5050
additionalData,
5151
} = options;
5252
const { disableEmit } = extraOptions;
53+
54+
// Initialize manifest with required properties from stats
55+
const { id, name, metaData } = stats;
5356
const manifest: Manifest = {
54-
...stats,
57+
id,
58+
name,
59+
metaData,
60+
shared: [],
61+
remotes: [],
62+
exposes: [],
5563
};
5664

5765
manifest.exposes = stats.exposes.reduce((sum, cur) => {

0 commit comments

Comments
 (0)