Posts

Showing posts from February, 2025

Webpack Module Federation

With the rise of micro frontends, managing shared dependencies and dynamically loading modules across applications has become a significant challenge. Webpack Module Federation , introduced in Webpack 5, offers a seamless solution for building distributed applications by enabling multiple JavaScript applications to share and consume modules dynamically at runtime. Module Federation is a feature in Webpack 5 that allows independent applications to share code without requiring each application to bundle the same dependencies. This makes it possible to split applications into smaller, maintainable units. Following are some key features of module federation Runtime Module Sharing : Applications can load shared modules dynamically without bundling them. Reduced Bundle Size : Since dependencies are shared, there’s no need to duplicate them across applications. Independent Deployment : Different teams can develop and deploy micro frontends independently. Improved Performance : By av...