Skip to content

Commit 4bb0c7f

Browse files
authored
chore: add ssrRemoteEntry to node manifest (#13)
1 parent 53722e4 commit 4bb0c7f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/federation/epic-stack-remote/rsbuild.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ const nodeFederationConfig = {
8080
runtimePlugins: [
8181
'@module-federation/node/runtimePlugin'
8282
],
83+
// see https://github.com/module-federation/core/blob/main/packages/manifest/src/ManifestManager.ts#L106
84+
manifest:{
85+
additionalData:(additionalDataOptions)=>{
86+
const { stats, } =additionalDataOptions;
87+
stats.metaData.ssrRemoteEntry = stats.metaData.remoteEntry;
88+
return stats;
89+
}
90+
}
8391
}
8492

8593
export default defineConfig({

0 commit comments

Comments
 (0)