Skip to main content
Version: 3x

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
NameType
scriptIdstring
caller?string
Returns

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

Defined in

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