A lightweight micro-frontend solution built with mainstream 2026 technologies, delivering high loading performance and complete MF capabilities.
- Micro-frontend: module-federation (mainstream MF modular tech in 2026 with active ecosystem)
- Micro-router: single-spa (enterprise-grade MF routing management)
- Sandbox: vite-plugin-sandbox (isolation)
- Server: Edge Route (micro-frontend route management, roadmap)
- High performance: manifest preloading and optimized ESM waterfall to speed up MF loading
- Great DX: HMR, debugging, and module graph support
- Robust sandbox isolation: prevents cross-app pollution (forks from qiankun, battle-tested)
- Performance: Lighthouse score 100
- Sandbox: solutions like qiankun and micro-app are not vite-esm compatible; using runtime
withcan degrade JS execution by ~20x
- 🔗 Host demo: Live Demo


- If you only want to start a single sub-module for development and debugging:
git clone https://github.com/zhangHongEn/vite-mfe-federation.gitpnpm install && pnpm run dev- Open Chrome extension
module-federation vite-vue-appproxy tohttp://localhost:5001/mf-manifest.jsonrspack-react-appproxy tohttp://localhost:5002/mf-manifest.json
- In
mfe.json, add:
{
"apps": [
{
"appCode": "vite-vue-app",
"routes": ["/vite-mfe-federation/new-app"],
"entry": "http://localhost:5003/mf-manifest.json"
}
]
}一个使用 2026 年主流技术的轻量化微前端解决方案,拥有极高的加载性能和完整的微前端特性。
- 微前端: module-federation(2026 年最主流的微前端模块化技术,生态活跃)
- micro-router: single-spa(大型微前端路由管理方案)
- sandbox: vite-plugin-sandbox(沙箱隔离)
- server: Edge Route(微前端路由管理方案,roadmap)
- 性能高:manifest 预加载、优化 ESM 加载瀑布,显著提升微前端加载速度
- 开发体验强:支持 HMR、Debug、Module Graph 等能力
- 完善的沙箱隔离:避免应用间相互污染(forks from qiankun,经过大量项目验证)
- 🔗 主应用演示: Live Demo


- 仅启动单个子模块进行开发与调试:
git clone https://github.com/zhangHongEn/vite-mfe-federation.gitpnpm install && pnpm run dev- 打开 Chrome 插件
module-federation vite-vue-app代理:http://localhost:5001/mf-manifest.jsonrspack-react-app代理:http://localhost:5002/mf-manifest.json
- 在
mfe.json中添加:
{
"apps": [
{
"appCode": "vite-vue-app",
"routes": ["/vite-mfe-federation/new-app"],
"entry": "http://localhost:5003/mf-manifest.json"
}
]
}