From 43dd97202a1163db4b8bb0c872d885840dc49288 Mon Sep 17 00:00:00 2001 From: Philip Lempke <41845329+philip-lempke@users.noreply.github.com> Date: Thu, 6 Nov 2025 12:24:34 -0600 Subject: [PATCH] Update orgin to include trailing slash - FederatedTypesPlugin.ts Added the trailing slash to the origin returned from parseRemoteUrls() in FederatedTypesPlugin.ts which was removing the last segment of the pathName when downloading types. Example "https://domain/segmement/remoteEntry.js". --- packages/typescript/src/plugins/FederatedTypesPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/typescript/src/plugins/FederatedTypesPlugin.ts b/packages/typescript/src/plugins/FederatedTypesPlugin.ts index e6f65eafd4c..bd8293a5afa 100644 --- a/packages/typescript/src/plugins/FederatedTypesPlugin.ts +++ b/packages/typescript/src/plugins/FederatedTypesPlugin.ts @@ -208,7 +208,7 @@ export class FederatedTypesPlugin { ([remote, entry]: [string, string]) => { let urlEndIndex = entry.length; if (entry.endsWith('.js')) { - urlEndIndex = entry.lastIndexOf('/'); + urlEndIndex = entry.lastIndexOf('/') + 1; } const remoteUrl = entry.substring(0, urlEndIndex); const splitIndex = remoteUrl.indexOf('@');