This example demos consumption of federated modules from a vite bundle. router-host app depends on components exposed by router-remote and itself.
-
cd packages/examples/vue3-advanced-demo -
pnpm restartYou can directly stop the 5004 and 5005 ports occupied by other applications, and compile and start the Host and Remote services -
CTRL + Ccan only stop the host server. You can runpnpm stopto stop all services.
We have added a Demo to show the combination of Vite + Vue + Pinia + Vue Router + Element Plus + ECharts.
We ported part of the Vuex example from vuex's official example as a functional verification.
- HOST (router-host): localhost:5004
- REMOTE (router-remote): localhost:5005
Similarly, we can launch the Dev mode on the Host side for development.
- HOST (router-host): localhost:5104
cd packages/examples/vue3-advanced-demo/router-host
pnpm run dev