-
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
fix(react): setup mf env var as input for rspack #29584
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
View your CI Pipeline Execution ↗ for commit c4c5597.
☁️ Nx Cloud last updated this comment at |
@@ -8,10 +8,11 @@ import { | |||
import { addMfEnvToTargetDefaultInputs } from '../../utils/add-mf-env-to-inputs'; | |||
|
|||
export default async function (tree: Tree) { | |||
if (!hasModuleFederationProject(tree)) { | |||
const bundler = hasModuleFederationProject(tree); |
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.
Should there be another migration for 20.4 for projects created after v18?
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.
## Current Behavior The Module Federation `NxRuntimeLibraryControlPlugin` relies on an environment variable that is set during the build/serve process. This could potentially lead to issues with cache restoration. The impact should be minimal as the runtime control plugin should only be added to the module federation config when the env var is set. It should only be set by the `module-federation-dev-server` executor which is invoked during serve - a non-cacheable task already. ## Expected Behavior Ensure the env var is set as an input to ensure maximum accuracy with module federation builds via rspack executor
## Current Behavior The Module Federation `NxRuntimeLibraryControlPlugin` relies on an environment variable that is set during the build/serve process. This could potentially lead to issues with cache restoration. The impact should be minimal as the runtime control plugin should only be added to the module federation config when the env var is set. It should only be set by the `module-federation-dev-server` executor which is invoked during serve - a non-cacheable task already. ## Expected Behavior Ensure the env var is set as an input to ensure maximum accuracy with module federation builds via rspack executor (cherry picked from commit dbdb72a)
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 Module Federation
NxRuntimeLibraryControlPlugin
relies on an environment variable that is set during the build/serve process.This could potentially lead to issues with cache restoration.
The impact should be minimal as the runtime control plugin should only be added to the module federation config when the env var is set.
It should only be set by the
module-federation-dev-server
executor which is invoked during serve - a non-cacheable task already.Expected Behavior
Ensure the env var is set as an input to ensure maximum accuracy with module federation builds via rspack executor