nx/docs/generated/devkit/mapRemotes.md

922 B

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

Name Type Description
remotes Remotes The remotes to map
remoteEntryExt "js" | "mjs" The file extension of the remoteEntry file
determineRemoteUrl (remote: string) => string The function used to lookup the URL of the served remote

Returns

Record<string, string>