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

fix(angular): fix dynamic module federation generation #22724

Merged

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Apr 8, 2024

Current Behavior

Running nx g @nx/angular:host shell --remote=login --dynamic when the login project already exists:

  • The login remote is not added to the Dynamic MF manifest (assets/module-federation.manifest.json)
  • The login remote is added to the Static MF configuration (module-federation.config.ts)
  • The lazy loaded route to the login remote is not added to the shell routes

Expected Behavior

Running nx g @nx/angular:host shell --remote=login --dynamic when the login project already exists:

  • The login remote should be added to the Dynamic MF manifest (assets/module-federation.manifest.json)
  • The login remote should not be added to the Static MF configuration (module-federation.config.ts)
  • The lazy loaded route to the login remote should be added to the shell routes

Related Issue(s)

Fixes #

@leosvelperez leosvelperez self-assigned this Apr 8, 2024
@leosvelperez leosvelperez requested a review from a team as a code owner April 8, 2024 10:35
@leosvelperez leosvelperez requested a review from jaysoo April 8, 2024 10:35
Copy link

vercel bot commented Apr 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Apr 8, 2024 11:55am

@leosvelperez leosvelperez marked this pull request as draft April 8, 2024 11:50
@leosvelperez leosvelperez force-pushed the angular/fix-mf-dynamic-generation branch from 7ff91dc to f40f10a Compare April 8, 2024 11:54
@leosvelperez leosvelperez marked this pull request as ready for review April 8, 2024 11:55
@leosvelperez leosvelperez merged commit 18a2878 into nrwl:master Apr 8, 2024
6 checks passed
@leosvelperez leosvelperez deleted the angular/fix-mf-dynamic-generation branch April 8, 2024 12:39
FrozenPandaz pushed a commit that referenced this pull request Apr 8, 2024
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants