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

FR: demonstrate Module Federation #150

Open
alexeagle opened this issue May 2, 2024 · 1 comment
Open

FR: demonstrate Module Federation #150

alexeagle opened this issue May 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@alexeagle
Copy link
Member

alexeagle commented May 2, 2024

https://webpack.js.org/concepts/module-federation/ aka. Micro-Frontends
is a way to break up a monolith app into several, which can then still be loaded at runtime into a Single Page Application.

This is typically used when several teams collaborate to build one app, and they either don't want to bundle their code together with other teams, or the scale is so large that memory and time required for the bundling step are unacceptable.

https://github.com/ScriptedAlchemy is an expert/evangelist of this approach, but not really involved in Bazel IIUC.

https://github.com/Aghassi/rules_spa is an example repo showing a POC of how to apply the concept.

@alexeagle alexeagle added the bug Something isn't working label May 2, 2024
@github-actions github-actions bot added the untriaged Requires traige label May 2, 2024
@alexeagle alexeagle added enhancement New feature or request and removed bug Something isn't working untriaged Requires traige labels May 2, 2024
@Mivr
Copy link
Contributor

Mivr commented Aug 28, 2024

rules_spa seems to be targeting the case of module federation being used for routes, but this is one of the approaches, there is also the case where a component can be ingested from an outside domain: https://github.com/module-federation/module-federation-examples/blob/master/react-18-code-splitting/app1/src/client/components/App.tsx

Which case should be demonstrated? Or both?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants