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

feat(react): add support for passing additional shared dependencies in the module federation config #10169

Merged
merged 1 commit into from May 9, 2022

Conversation

leosvelperez
Copy link
Member

Current Behavior

There isn't a way to specify additional shared dependencies to the Module Federation config.

Expected Behavior

Should be possible to add additional shared dependencies that might have not been collected automatically. A new optional additionalShared property is available in the withModuleFederation function options that allow providing additional shared dependencies. The property is an array that supports:

  • string: name of the dependency, the withModuleFederation utility function will generate the recommended configuration for it.
  • [string, SharedLibraryConfig]: tuple where the first index is the name of the dependency and the second index, is the shared configuration for it.
  • { libraryName: string; sharedConfig: SharedLibraryConfig }: object specifying the dependency name and the shared configuration.

Related Issue(s)

Fixes #

@leosvelperez leosvelperez self-assigned this May 5, 2022
@nx-cloud
Copy link

nx-cloud bot commented May 5, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 386a72f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 12 targets

Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented May 5, 2022

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

1 Ignored Deployment
Name Status Preview Updated
nx-dev ⬜️ Ignored (Inspect) May 5, 2022 at 3:23PM (UTC)

@jaysoo jaysoo merged commit 425adf1 into nrwl:master May 9, 2022
@jaysoo
Copy link
Member

jaysoo commented May 9, 2022

LGTM

@leosvelperez leosvelperez deleted the react/mf-additional-shared branch May 25, 2022 15:38
@github-actions
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 Mar 18, 2023
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