You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to solve a use case with module federation, in which an application implicitly depends on an MFE, but we do not necessarily need to rebuild it, but to replace the "remotes.json" file with the changes of the current MFE
Example:
Application Shell remote loading MFE1. There is no direct dependency between them except the load remote ability. Supporting versioning, we close the Shell app with a "remotes.json" which includes the new version links of the relevant MFEs.
The Shell project should create a new version, and include the change in the remote.json but no need to rebuild it. We tried to implement it with implicit dependency, but seems like it triggering the build anyway just cause of it.
Any suggestion on how to implement it without reinventing the wheel here? Does Nx support it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi team 👋🏼
We are trying to solve a use case with module federation, in which an application implicitly depends on an MFE, but we do not necessarily need to rebuild it, but to replace the "remotes.json" file with the changes of the current MFE
Example:
Application Shell remote loading MFE1. There is no direct dependency between them except the load remote ability. Supporting versioning, we close the Shell app with a "remotes.json" which includes the new version links of the relevant MFEs.
The Shell project should create a new version, and include the change in the remote.json but no need to rebuild it. We tried to implement it with implicit dependency, but seems like it triggering the build anyway just cause of it.
Any suggestion on how to implement it without reinventing the wheel here? Does Nx support it?
Using Nx v17,
Looking forward to discussing it 🙏🏼
Beta Was this translation helpful? Give feedback.
All reactions