-
-
Notifications
You must be signed in to change notification settings - Fork 189
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 Plugin for Vite #2768
Comments
Happily this is something we can expect to see as "officially" supported. @yyx990803 has put this on the roadmap for Rolldown which is going to be the basis for the next version of Vite. |
I am implementing this plugin, and I would like to ask here, how should I handle the first parameter of init and the shared of init, whether @module-federation/runtime should provide a merge api, or who can tell me how to do it, I am only one step away from completion |
fantastic news @zhangHongEn! Will work on getting you answers asap. @ScriptedAlchemy @zmzlois can we dig into this. |
Can we just make this work with vite ? https://github.com/MadaraUchiha-314/rollup-plugin-module-federation It already uses the runtime and the sdk and has solved most of the problems related to supporting MF 2.0 Happy to collaborate on this. @zhangHongEn FYI, I have been collaborating with @ScriptedAlchemy on this for the past few months and it's almost close to completion |
This is how you use the shareScope that's passed into init ^ |
Thanks, this is very useful I already support dev and build modes of vite, and have all the main features, but I haven't done other enhancements of 2.0, such as manifest.json and runtime plugins, etc. Can I PR here and then we can improve it together? |
Clear and concise description of the problem
With the advent of @module-federation/esbuild, can we expect an official plugin to work with Vite? I say this because Vite has a large adoption. This would be wonderful for the module federation ecosystem.
Suggested solution
Today, for Vite, we have some options, but none integrated with the core of module federation, as the @module-federation/vite plugin still depends on @softarc/native-federation-esbuild.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: