module-federation-examples icon indicating copy to clipboard operation
module-federation-examples copied to clipboard

Vite examples were removed

Open renansoares opened this issue 1 year ago • 1 comments

Hi, I see the examples to use with Vite was removed in this commit.

I've been trying to understand if there's a way to make Webpack (host) + Vite (remote) for module federation to work.

The old examples with Vite were using a package @module-federation/vite which was a implementation using Native Federation. Could you explain why was it removed?

As far as I understood, it is not possible to have a Module Federation host + Native Federation remote, at least it's not supported because Native Federation creates a remoteEntry.json instead of a remoteEntry.js. Is there a way to make these two compatibles? If yes, what are the challenges involved?

Could you please help me by giving suggestions if it is possible and that would be the approach to have the setup Webpack (host) + Vite (remote) ?

I'm happy to contribute if needed.

renansoares avatar Jun 24 '24 13:06 renansoares

that package under our org is community based, since it had problems and did not work with my v2 architecture, i have removed all examples that do not implement my runtime reliably

ScriptedAlchemy avatar Jun 24 '24 22:06 ScriptedAlchemy