Skip to content

Onlylonger/rspack-mf-mf-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hub

Online demo link: https://onlylonger.github.io/rspack-mf-mf-hub/

Record.gif

Plugin-a source link: https://github.com/Onlylonger/rspack-mf-mf-plugin.
Plugin-a Online demo link: https://onlylonger.github.io/rspack-mf-mf-plugin

This is an MVP implementation of micro-frontends, based on module federation technology. The concept draws inspiration from the micro-frontend architecture used in the Hong Kong Hospital Authority (HK HA), but the implementation differs in the following ways:

  • The project is built using the Rsbuild (Rspack) ecosystem, rather than CRA.
  • Module Federation is handled using an independent Module Federation package (@module-federation/enhanced), rather than webpack's built-in Module Federation.
  • All components operate within the same React App Context scope, enabling shared Context usage and supporting only React. Plugins do not create new React/Vue/... contexts each time.
  • Multi-tab and detail page caching are supported. Plugins only support registering first-level dynamic routes and do not support nested routes.
  • The implementation logic is clearer and easier to maintain.

About

Module Federation micro frontend implement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published