Replies: 1 comment
-
Seems nice! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Proposal: Introducing a Flexible Plugin System
Goals
Proof‑of‑Concept (Module Federation)
I invested engineering time to build a working POC that demonstrates:
plugins.json
file (no rebuild required).Repo: https://github.com/rvveber/react-dynamic-bi-directional-module-federation-poc
Run locally (single copy‑paste):
git clone https://github.com/rvveber/react-dynamic-bi-directional-module-federation-poc cd react-dynamic-bi-directional-module-federation-poc ./demo.sh
Once you open http://localhost:3001 you can see the demonstration.
How This Differs from Classic Slot‑Based Systems
FAQ & Open Questions
Security / isolation?
Remote entries are loaded only from whitelisted origins; each deployment controls its allow‑list.
Version skew?
Module Federation shares singletons (React, react‑query, etc.) to avoid duplicate bundles.
Performance impact?
Plugins load after
DOMContentLoaded
and are cached independently, so cold‑start cost is minimal.Call for Feedback
Please share your opinions, concerns, and questions. I'm happy to iterate on the POC, update documentation, and drive the initial integration PR once we agree on direction.
Looking forward to the discussion!
Beta Was this translation helpful? Give feedback.
All reactions