Ensure the @nx/module-federation Package is Installed
If workspace includes Module Federation projects, ensure the new @nx/module-federation
package is installed.
Sample Code Changes
package.json
1{
2 "dependencies": {}
3}
4
Here is a list of all migrations available for this package.
Packages
Name | Version | Always Add to package.json |
---|---|---|
sass-loader | ^16.0.4 | Update only |
@rspack/core | ^1.2.2 | Update only |
If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.
If workspace includes Module Federation projects, ensure the new @nx/module-federation
package is installed.
1{
2 "dependencies": {}
3}
4
Packages
Name | Version | Always Add to package.json |
---|---|---|
@rspack/core | ^1.1.5 | Update only |
@rspack/dev-server | ^1.0.9 | Update only |
Update the withModuleFederation import use @nx/module-federation/rspack.
Update the withModuleFederation import to use @nx/module-federation/rspack.
Update import paths for withModuleFederation
and withModuleFederationForSSR
.
1import {
2 withModuleFederation,
3 withModuleFederationForSSR,
4} from '@nx/rspack/module-federation';
5
Packages
Name | Version | Always Add to package.json |
---|---|---|
@rspack/core | ^1.0.0 | Update only |
@rspack/dev-server | ^1.0.0 | Update only |
@rspack/plugin-react-refresh | ^1.0.0 | Update only |
Packages
Name | Version | Always Add to package.json |
---|---|---|
@rspack/core | ^0.7.5 | Update only |
@rspack/dev-server | ^0.7.5 | Update only |
@rspack/plugin-minify | ^0.7.5 | Update only |
Packages
Name | Version | Always Add to package.json |
---|---|---|
@rspack/core | ^0.6.1 | Update only |
@rspack/dev-server | ^0.6.1 | Update only |
@rspack/plugin-minify | ^0.6.1 | Update only |
Packages
Name | Version | Always Add to package.json |
---|---|---|
@rspack/core | ~0.5.6 | Update only |
@rspack/dev-server | ~0.5.6 | Update only |
@rspack/plugin-minify | ~0.5.6 | Update only |