IRemoteModuleLocation
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Location of a module loaded via Module Federation.
export interface IRemoteModuleLocation
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
string | (ALPHA) Exposed module name. Must match the remote module definition. Maps to internal application module (e.g. “./src/remote-entry.tsx”) | ||
string | (ALPHA) Unique module federation scope value (must match the remote module definition during build) Must be unique within the same remote federation to not share dependencies and scope with another application. | ||
string | (ALPHA) Full URL of the remote federated module with the application bundle. |
Property details
IRemoteModuleLocation.modulepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Exposed module name. Must match the remote module definition. Maps to internal application module (e.g. “./src/remote-entry.tsx”)
module: string;
Example
“./AppModule”
IRemoteModuleLocation.scopepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Unique module federation scope value (must match the remote module definition during build) Must be unique within the same remote federation to not share dependencies and scope with another application.
scope: string;
Example
“my-remote-federated-module”
IRemoteModuleLocation.urlpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Full URL of the remote federated module with the application bundle.
url: string;