# micro_front_end **Repository Path**: sun_jiaxing/micro_front_end ## Basic Information - **Project Name**: micro_front_end - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-12 - **Last Updated**: 2025-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 微前端解决方案 1.1 iframe 1. 接入简单,隔离非常完美 2. 通信可以用postMessage 缺点:体感差,弹窗只能在iframe中;每个iframe都需要加载一套 html、css 1.2 web-components 1. 创建shadow DOM,天生的作用域隔离 缺点:兼容性问题、学习成本高、修改样式困难 1.3 single-spa 1. 必须是webpack5,原理是system加载机制,子应用必须暴露固定的接入协议 2. 无沙箱机制,需自己实现JS沙箱、CSS沙箱 3. 没有预加载功能 1.4 module federation 1. 去中心化,exposes 暴露模块、remote注册模块 缺点:强依赖webpack5