In this article, I will walk you through how to implement a micro frontends app with single-spa and module federation in Webpack.
Here is the final codebase on GitHub:
manakuro/micro-frontends-single-spa-module-federation
Micro frontends have been around since 2016 in front end developments. In a nutshell, the idea of micro frontends is to break down the monolith app into smaller, easier to build, and more maintainable pieces.
That allows you to:
There are also drawbacks such as the complexity of the initial setup and performance issues by duplicated code, but single-spa and module federation can resolve them
#javascript