module-federation / vite

Vite Plugin for Module Federation
MIT License
335 stars 26 forks source link

Examples for Dynamic Remotes #146

Closed jofmi closed 1 month ago

jofmi commented 1 month ago

Module Federation has a method to load dynamic remotes: https://module-federation.io/guide/basic/runtime.html

The webpack plugin has the following application example: https://github.com/module-federation/module-federation-examples/tree/master/advanced-api/dynamic-remotes

It would be great if the examples here could be updated to demonstrate how to use this approach with vite.

gioboa commented 1 month ago

Thanks @jofmi for looking at this project. This is the file to mimic with this package.

judithhartmann commented 1 month ago

I can set up the example later today

gioboa commented 1 month ago

Let's use the multi-example because we have e2e test on it. we can create a different route to test this case. Thanks for your help @judithhartmann

AdityaPimpalkar commented 3 weeks ago

Thank you @gioboa and @judithhartmann! 😃 I've been stuck since days finding an example for dynamic remotes!