iconag-bbasmer / vite-module-federation-test

This is a test for module federation using Vite.
MIT License
1 stars 1 forks source link

Using Vite for dynamic module federation with React Hooks #1

Open yuvalbne opened 1 year ago

yuvalbne commented 1 year ago

Hi, Did you solve the issue you described in StackOverflow? I am facing the same issue exactly. https://stackoverflow.com/questions/76122146/using-vite-for-dynamic-module-federation-with-react-hooks

iconag-bbasmer commented 1 year ago

No, I couldn't solve it but I found out that the module federation plugin for Vite still seems to have a problem in this regard. So I decided to move away from using Vite. In the meantime I switched to use Nx as a platform to manage my code in a monorepo and they have a working solution for module federation built-in. It uses Webpack under the hood I guess and it works without problem. It took me a while to understand and setup though.