Enable javascript in your browser for better experience. Need to know to enable it? Go here.
Last updated : Apr 02, 2025
NOT ON THE CURRENT EDITION
This blip is not on the current edition of the Radar. If it was on one of the last few editions, it is likely that it is still relevant. If the blip is older, it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the Radar. Understand more
Apr 2025
Trial ?

Module Federation 允许在微前端之间指定共享模块并实现依赖的去重。随着 2.0 版本的发布,模块联邦已经发展到可以独立于 webpack 工作。此更新引入了一些关键功能,包括联邦运行时(Federation Runtime)、全新的插件 API,以及对流行框架(如 React 和 Angular)及热门构建工具(如 RspackVite)的支持。通过采用模块联邦,大型 Web 应用可以拆分为更小、更易管理的微前端,使不同的团队能够独立开发、部署和扩展,同时高效地共享依赖项和组件。

Apr 2021
Assess ?

Webpack 5 模块联邦 功能的发布,受到了微前端架构开发者的高度期待。该功能引入了一种更加标准化的方式来优化模块依赖和共享代码的管理与加载。模块联邦允许共享模块规范,通过一次加载多个模块使用的代码,从而帮助消除微前端之间的重复依赖。它还能够区分本地模块和远程模块,远程模块实际上并不是构建的一部分,而是异步加载的。与诸如npm软件包之类的构建时依赖项相比,这可以显著简化那些随着多个下游依赖而更新的模块的部署。但是请注意,这要求你将所有微前端与Webpack捆绑在一起,而不是像导入映射那样,最终可能会成为W3C标准的一部分。

Published : Apr 13, 2021

Download the PDF

 

 

 

English | Português 

Sign up for the Technology Radar newsletter

 

 

Subscribe now

Visit our archive to read previous volumes