Federation module
Greenfield or rewrite. Built with Vite + Module Federation, imports
useAuth, authService directly from the host, routes inside the
host’s BrowserRouter.
Module teams own a
module-manifest.jsonfile, ship their code on their own cadence, and the platform’s runtime + pipeline glue them into a coherent shell without any coordinated release with the host.
Federation module
Greenfield or rewrite. Built with Vite + Module Federation, imports
useAuth, authService directly from the host, routes inside the
host’s BrowserRouter.
Iframe consumer
You already have a working app. Keep your own stack, talk to the host
over postMessage for auth tokens, own your own router.
Read the full comparison in Guide → Federation vs. iframe.