-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(module-federation): move common executor logic to module-federation package #29151
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit ca75e46. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
b9ef5de
to
1ce9ecb
Compare
…federation pacakge
…le-federation pacakge
1ce9ecb
to
98ad59b
Compare
98ad59b
to
ca75e46
Compare
readProjectsConfigurationFromProjectGraph, | ||
} from '@nx/devkit'; | ||
|
||
export async function startRemoteIterators( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: What about just startRemotes
, serveRemotes
or runRemotes
? That's what the function does and the iterators are just an implementation detail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is an impl detail, but I think it makes sense in this case as it indicates that you're getting iterators for both static and dev remotes, which are then combined thereafter.
If we wanted to rename, runRemotes
might be the best option, but that can be a cleanup for a different time if we decide on it.
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
The logic for the
module-federation-dev-server
andmodule-federation-ssr-dev-server
is duplicated across Angular, React and Rspack.The majority of this logic is the same, and the duplication causes an increased maintenance tax.
Expected Behavior
Move the logic into a utility that is exposed from
@nx/module-federation
.