Open douglaszaltron opened 2 months ago
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
how should I handle the first parameter of init and the shared of init
This is how you use the shareScope that's passed into init ^
how should I handle the first parameter of init and the shared of init
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? https://github.com/module-federation/vite/issues/4
@zhangHongEn would love to check your PR and work on it together too
@zhangHongEn would love to check your PR and work on it together too
pr is here, it can speed up some progress
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