Federated.createURLResolver
▸ createURLResolver(config
): URLResolver
Creates URL resolver for Module Federation from provided config.
example
createURLResolver
is a abstraction over Script.getRemoteURL,
for example:
is equivalent to:
Name | Type | Description |
---|---|---|
config |
URLResolverConfig |
Configuration for the resolver. |
A resolver function which will try to resolve URL based on given scriptId
and caller
.