Type alias: URLResolver

Federated.URLResolver

Ƭ URLResolver: (scriptId: string, caller?: string) => string | (webpackContext: WebpackContext) => string | undefined

Type declaration

▸ (scriptId, caller?): string | (webpackContext: WebpackContext) => string | undefined

Resolves URL to a container or a chunk when using Module Federation, based on given scriptId and caller.

Parameters
Name Type
scriptId string
caller? string
Returns

string | (webpackContext: WebpackContext) => string | undefined

Defined in

packages/repack/src/modules/ScriptManager/federated.ts:12