Achieving this can be done through the innovative use of repack and Module Federations, a feature highlighted by callstack
Overview
This technology offers significant support for development teams, particularly in the construction of intricate apps with Micro-Frontend architecture that require coordination between multiple teams.
The Concept of Module Federation
Module Federation was first introduced in Webpack 5 as a tool for code-splitting and sharing split code parts among loosely connected applications. It facilitates faster delivery of large applications for distributed teams. With the latest update, Re.Pack 3 seamlessly integrates this functionality.
Module Federation presents one of the strategies for implementing Micro-frontends architecture, making it a valuable asset for on-demand feature development.
Micro-frontends Framework
In a nutshell, the Micro-Frontends workflow comprises:
the initial deployment of the host app on the device,
and utilization of Micro-frontend (MFE) apps by the host app.
This setup allows each container (MFE) utilized by the host application to operate independently during deployment and maintenance. Changes to Micro-frontends are instantly reflected in the host app without the need for redeployment until they are JS-related.
The primary feature of Module Federation lies in accessing remote JS code exposed by MFE, a process known as Runtime Deployment.