Is module federation coming to parcel ? #5490
Replies: 8 comments 13 replies
-
It's on the roadmap but not a priority at the moment. I don't think we were planning on implementing it exactly the same way as it has some flaws at scale, but I might be wrong. Maybe we'll implement 2 versions. Pretty sure we want to ship a stable version before this. It's not that highly requested atm |
Beta Was this translation helpful? Give feedback.
-
If we can keep the basic get,init api it would be nice to offer the same capability across various bundlers . However if that's not offered, I imagine all one would need to do is make a little shim. I used to do this with webpack 4 and pretty much replicated the MF api for v4 &v5. We did similar with rollup as well. I'm not a big parcel user but I imagine that if they support some interface, it could work. Main challenge is each compiler needs the dependency sharing/fallback mechanism. The "exposes” and “remotes” functionality is relatively trivial to replicate regardless of bundler used |
Beta Was this translation helpful? Give feedback.
-
has progress? |
Beta Was this translation helpful? Give feedback.
-
Looks like this has been abandoned,... |
Beta Was this translation helpful? Give feedback.
-
Found a possible way to bridge support to all other bundlers. Use a child compiler in webpack and just pass parcel options to it. So parcel emits all its build code into a webpack graph and delivers your app wrapped in the webpack runtime - the important part. Under the hood it doesn't matter who or what does code generation |
Beta Was this translation helpful? Give feedback.
-
Update. Not for parcel but could be adapted. We are releasing module-federation/native which will initially support esBuild. This should be bundler agnostic since we can now work around the weak apis of other bundlers by augmenting import map polyfill as a replacement for module factories and robust api of webpack. So, soon we will be able to support any bundler. Will take time to adapt for parcel and rollup, but is now possible as long as you use ESM and modern specs |
Beta Was this translation helpful? Give feedback.
-
How difficult would be to integrate https://github.com/module-federation/typescript into Parcel? 🤔 (cc: @prasannamestha 👀) |
Beta Was this translation helpful? Give feedback.
-
@devongovett @mischnic @ScriptedAlchemy |
Beta Was this translation helpful? Give feedback.
-
I saw an article from @ScriptedAlchemy on dev.to back in August and in a comment there he writes
So I wanted to ask if this is actively being worked on for parcel v2 🤞
Beta Was this translation helpful? Give feedback.
All reactions