Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/node-preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,9 @@ const globalSlot = globalThis as Record<string, unknown>;
let status: FederationStatus;

try {
// No hostInstances: the host bundle and the remotes resolve `@angular/*` through one import map.
const result = await initNodeFederation(existsSync(manifestPath) ? manifestPath : {}, {
hostRemoteEntry,
// Bridge the host's shared singletons (`@angular/*`, rxjs, zone.js, …) to
// remotes during SSR: each is resolved through the import map and published
// on globalThis.__NF_HOST_INSTANCES__. Without it a remote's
// `@angular/core/rxjs-interop` loads a private chunk → NG0203.
hostInstances: 'all',
});

// Bridge the loader to the app (read by the host's SSR render code).
Expand Down
Loading