Jiannan Zhang

Results 83 comments of Jiannan Zhang

Do we need some other packaging tool (like `rollup`) to package the chunks in `cjs` and `esm` formats separately, and then differentiate them in package.json, like this ``` main: 'index.cjs'...

> > Do we need some other packaging tool (like `rollup`) to package the chunks in `cjs` and `esm` formats separately, and then differentiate them in package.json, like this >...

> Any update? No update .I've been a little busy lately.

> I'm not able to get `await importShared` for react & react-dom with latest version `vite-plugin-federation` so far, I tried with multiple configurations but always included react in the MFEs...

> Exactly, so it’s… unuseful for React projects, as you can’t have 2 react instances loaded in the same page. Coule you give me a reproduction of the repository, I'll...

> Sure @ruleeeer, here you have: > > https://stackblitz.com/edit/vite-plugin-federation-shared-libs-problems-hierarchy > > If you want the app to crash, you only need to use the App from MF in the host...

@robertovg I released a new version to try to fix this issue and it looks like your app is working properly, buld&preview mode at least no crashes and no two...

Do you mean you'll commit a PR to fix this?

Hi , @matrunchyk This may be an issue for improvement, as the plugin modifies the generated source code during compilation, but I didn't handle the sourceMap additionally, and turning off...

I will try to fix the problem by generating a sourceMap while modifying