Module Federation Introduction
Module Federation is a mechanism that allows code and resources to be shared across multiple JavaScript applications.
Module Federation is used to support a microfrontend-based architecture where multiple applications can work together as a single user interface.
In OneCX, Module Federation enables dynamic loading of UI modules, allowing applications to be developed, built, and deployed independently.
This documentation section covers module federation-related concepts, implementation details, configuration, and best practices.
Before proceeding, familiarize yourself with the following concepts:
| Name | Description |
|---|---|
A static module bundler for JavaScript applications that supports Module Federation |
|
Enables scalable, independently deployable frontend architecture with runtime integration |
|
Technology used to render applications in OneCX shell |
|
Extends the concepts of microservices to the frontend world |
|
An innovative open-source platform solution enabling seamless microfrontend integration |
Name |
Description |
Explains how content loading is handled in OneCX |
|
Explains how Web Components are used in OneCX to load Microfrontends |
Name |
Description |
Explains how to set the initial structure and configuration for a Microfrontend application in OneCX |
|
Explains how to configure a Microfrontend to use Module Federation for loading and dependency sharing in OneCX |
|
Explains that exposing modules and remote components via Microfrontends is the recommended approach within the OneCX platform. |