Manfred Steyer
The Microfrontend Revolution- Using Webpack 5 Module Federation with Angular
#1about 4 minutes
The historical challenge of building micro frontends
Micro frontends break large applications into smaller, independently deployable parts, but loading them into a unified shell has historically been difficult.
#2about 5 minutes
Understanding Webpack 5 Module Federation concepts
Module Federation enables loading separately compiled code at runtime by defining host and remote roles, exposing modules, and sharing common dependencies.
#3about 4 minutes
Using custom builders to integrate with Angular CLI
A custom Angular CLI builder is required to inject the Module Federation configuration into the underlying Webpack build process.
#4about 6 minutes
Demo: Setting up the project for Module Federation
The demonstration begins by addressing the Webpack 5 requirement in an Angular 11 project using a Yarn resolution and then adding the necessary plugin.
#5about 4 minutes
Demo: Configuring the remote micro frontend application
The remote application's Webpack config is adjusted to expose specific Angular modules and define shared dependencies to avoid duplication.
#6about 4 minutes
Demo: Configuring the host shell for lazy loading
The shell application is configured to map the remote micro frontend and uses a standard lazy-loaded route to import it at runtime.
#7about 3 minutes
Demo: Running and verifying the micro frontend integration
The shell and micro frontend are served simultaneously, demonstrating successful runtime loading and dependency sharing as verified in the browser's network tab.
#8about 2 minutes
Understanding the roadmap for production use
While Webpack 5 is production-ready, official Angular CLI integration is expected in version 12, making the current approach an experimental opt-in for prototyping.
#9about 2 minutes
Key takeaways and resources for further learning
Module Federation is a key enabler for micro frontends and plugin-based architectures, providing a straightforward way to load separately compiled code.
Related jobs
Jobs that call for the skills explored in this talk.
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
MARKT-PILOT GmbH
Stuttgart, Germany
Remote
€75-90K
Senior
Java
TypeScript
+1
Matching moments
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
11:10 MIN
The only frontend stack that truly matters
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
03:16 MIN
Improving the developer feedback loop with specialized tools
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
05:28 MIN
The origin story of the Polypane developer browser
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
09:00 MIN
Navigating the growing complexity of modern CSS
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
04:56 MIN
Recreating React components using AI and dev tools
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
Featured Partners
Related Videos
Native Federation: The Future of Micro Frontends and Plugin-Systems in Angular
Manfred Steyer
Micro-Frontends with Module Federation: Beyond the Basics
Manfred Steyer
Micro Frontends with Module Federation: Why and How?
Manfred Steyer
Advanced Micro Frontends: Multi-Version and Multi-Framework Scenarios
Manfred Steyer
Front-End Micro Apps
Serg Hospodarets
Multiple Ships to the Island - Micro Frontends & Island Architectures
Florian Rappl
Interface Contracts in Microfrontend Architectures
Alexander Günsche
Microfrontends with Blazor: Welcome to the Party!
Florian Rappl
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.


Paradigma Digital
Barcelona, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Lleida, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
A Coruña, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Municipality of Valencia, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Boiro, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Badajoz, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Pamplona, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Municipality of Marbella, Spain
API
React
Svelte
Vue.js
WebPack
+3