From 4fe17227d323c54aca149bb135d53d1694f7c47a Mon Sep 17 00:00:00 2001 From: Aukevanoost Date: Wed, 18 Nov 2026 17:48:22 +0100 Subject: [PATCH] fix(ssr): Drop the host-instances bridge from the prod preload --- src/node-preload.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/node-preload.ts b/src/node-preload.ts index 7d4c2de4..11ef3921 100644 --- a/src/node-preload.ts +++ b/src/node-preload.ts @@ -99,13 +99,9 @@ const globalSlot = globalThis as Record; 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).