If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.
@nx/react:migrations | Nx
Migration References
Here is a list of all migrations available for this package.
update-20-2-0-update-module-federation-config-import
Update the ModuleFederationConfig import use @nx/module-federation.
update-20-2-0-update-with-module-federation-import
Update the withModuleFederation import use @nx/module-federation/webpack.
update-19-6-1-ensure-module-federation-target-defaults
Ensure Target Defaults are set correctly for Module Federation.
update-19-6-0-turn-module-federation-dts-off
Ensure Module Federation DTS is turned off by default.
update-module-federation-ssr-server-file
Update the server file for Module Federation SSR port value to be the same as the 'serve' target port value.
fix-target-defaults-for-webpack
Ensure targetDefaults inputs for task hashing when '@nx/webpack:webpack' is used are correct for Module Federation.
add-module-federation-env-var-to-target-defaults
Add NX_MF_DEV_SERVER_STATIC_REMOTES to inputs for task hashing when '@nx/webpack:webpack' is used for Module Federation.