Vue MFE 1.0

Vue MFE 2.0 Design

进化 🧬 VS 进步 🏃 - Vue MFE 2.0 for Vue 2/3

Refactor

  1. Use JSX/template <App />, <SubApp /> instead of createApp/createSubApp
  2. Use Module Federation + Pre Build instead of Package Server UMD/CDN
  3. Use Suspense instead of LazyLoad
    1. Suspense only for Component
    2. LazyLoad for Module/Resource
  4. Use TypeScript instead of JavaScript
  5. Use Vue 3 or Vue 2 ?
  6. Use SOLID for App/SubApp design not FP
  7. Use Registry instead of Cache

Patches

  1. Lazy - 未找到时候的错误提示