The section between the dashed lines is a separately compiled and deployed Micro Frontend:
Repeat this for both, the shell
and the mfe1
folder:
npm i
npm run dev
vite.config.ts
: Here, the federation-vite-plugin is used and the dev server is configured to allow access to the shared
folderfederation.config
: Native Federation configindex.html
: Here, the polyfill for Import Maps is registeredmain.ts
: Initializes Native Federation and then (!) imports bootstrap.ts
for starting the application