Sharing Dependencies with Module Federation
In the previous chapter, we investigated the advantages and use cases for the siteless UI pattern. At its core, the siteless UI pattern is made specifically for large-scale client-side composed applications. Naturally, one of the most frequently occurring challenges with any kind of client-side composed micro frontend solution is third-party dependencies.
In this chapter, we’ll discuss what makes third-party dependencies special. We’ll see that some tools and methods exist to deal with third-party dependencies efficiently – at compile time and at runtime. Ultimately, the goal of this chapter is to teach you to be able to use these tools for crafting the best possible micro frontend solutions.
We’ll cover the following topics in this chapter:
- Sharing dependencies between micro frontends
- Utilizing Module Federation
- Understanding Native Federation
- Achieving independence with SystemJS