UNPKG

@nx/module-federation

Version:

The Nx Plugin for Module Federation contains executors and utilities that support building applications using Module Federation.

20 lines 1.01 kB
import { Remotes } from './models'; /** * Map remote names to a format that can be understood and used by Module * Federation. * * @param remotes - The remotes to map * @param remoteEntryExt - The file extension of the remoteEntry file * @param determineRemoteUrl - The function used to lookup the URL of the served remote */ export declare function mapRemotes(remotes: Remotes, remoteEntryExt: 'js' | 'mjs', determineRemoteUrl: (remote: string) => string, isRemoteGlobal?: boolean): Record<string, string>; /** * Map remote names to a format that can be understood and used by Module * Federation. * * @param remotes - The remotes to map * @param remoteEntryExt - The file extension of the remoteEntry file * @param determineRemoteUrl - The function used to lookup the URL of the served remote */ export declare function mapRemotesForSSR(remotes: Remotes, remoteEntryExt: 'js' | 'mjs', determineRemoteUrl: (remote: string) => string): Record<string, string>; //# sourceMappingURL=remotes.d.ts.map