Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module Federation 2 Support in Vite #16635

Closed
4 tasks done
pedrojfds opened this issue May 8, 2024 · 7 comments
Closed
4 tasks done

Module Federation 2 Support in Vite #16635

pedrojfds opened this issue May 8, 2024 · 7 comments

Comments

@pedrojfds
Copy link

Description

As a developer using Vite I would like to request support for Module Federation 2.
https://module-federation.io/blog/announcement.html

Module Federation is a crucial feature for enhancing the efficiency and simplicity of developing large applications, as well as facilitating team collaboration. However, Vite currently lacks proper support for Module Federation.

The existing plugin for Module Federation in Vite is not actively maintained and issues are beginning to accumulate. This limitation hinders developers who rely on Module Federation for their projects from effectively utilizing Vite.

Suggested solution

Given the importance of Module Federation in modern web development workflows, we kindly request the Vite team to assume the ownership of the implementation of a Module Federation 2 plugin. By doing so you will empower developers to build more robust and scalable applications while reinforcing Vite's position as a core tool in the JavaScript ecosystem.

Alternative

The alternative to lacking support for Module Federation in Vite is to abandon Vite and use RsBuild, which currently offers better support for this feature.

Additional context

No response

Validations

@Niputi
Copy link
Contributor

Niputi commented May 8, 2024

There's a plugin for it https://github.com/originjs/vite-plugin-federation

@pedrojfds
Copy link
Author

That plugin lacks support for module-federation 2.0 and is broken in multiple aspects, causing frustration.
Furthermore, it appears to be abandoned, with numerous unresolved issues accumulating without any responses.

@bluwy
Copy link
Member

bluwy commented May 9, 2024

Module federation is something we had discussed often, but no one on the team is familiar and uses it, hence it's not something we will implement. I'd suggest creating a new plugin if the existing one is unmaintained.

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
@OscarLijoBusto
Copy link

There's a plugin for it https://github.com/originjs/vite-plugin-federation

It is incompatible with react and they don't fix it

@OscarLijoBusto
Copy link

+1

@luiztsmelo
Copy link

The new bundler that is being developed for Vite, Rolldown, will have module federation built-in.

@aurium
Copy link

aurium commented May 29, 2024

@github-actions github-actions bot locked and limited conversation to collaborators Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants