Overview of @module-federation/runtime
mainThe @module-federation/runtime package is a core component used to manage module loading and dependency sharing in a federated environment. It provides several key capabilities:
- Dependency Sharing: When used in conjunction with a build-time plugin, it can share basic dependencies based on defined policies. This reduces the total number of module downloads and improves overall loading speed.
- Granular Consumption: It allows for consuming only specific parts of a remote module's exports, preventing the need to fully download the entire remote module.
- Extensibility: The runtime calling process can be customized and extended using the
module-runtimeplugin mechanism.