Function: mapRemotes

mapRemotes(remotes, remoteEntryExt, determineRemoteUrl): Record<string, string>

Map remote names to a format that can be understood and used by Module Federation.

Parameters

NameTypeDescription
remotesRemotesThe remotes to map
remoteEntryExt"js" | "mjs"The file extension of the remoteEntry file
determineRemoteUrl(remote: string) => stringThe function used to lookup the URL of the served remote

Returns

Record<string, string>