Skip to content

The @nx/rspack plugin provides various migrations to help you migrate to newer versions of rspack projects within your Nx workspace. Below is a complete reference for all available migrations.

21.5.x

21.5.0-package-updates

Version: 21.5.0-beta.2

Packages

The following packages will be updated:

NameVersionAlways add to package.json
@rspack/core^1.5.0Updated only
@rspack/dev-server^1.1.4Updated only

21.4.x

21.4.0-package-updates

Version: 21.4.0-beta.8

Packages

The following packages will be updated:

NameVersionAlways add to package.json
http-proxy-middleware^3.0.5Updated only

21.3.x

21.3.0-package-updates

Version: 21.3.0-beta.8

Packages

The following packages will be updated:

NameVersionAlways add to package.json
@module-federation/enhanced^0.17.0Updated only
@module-federation/node^2.7.9Updated only

21.0.x

21.0.1-package-updates

Version: 21.0.1-beta.0

Packages

The following packages will be updated:

NameVersionAlways add to package.json
@rspack/core^1.3.8Updated only
@rspack/dev-server^1.1.1Updated only

20.5.x

20.5.0-package-updates

Version: 20.5.0-beta.4

Packages

The following packages will be updated:

NameVersionAlways add to package.json
sass-loader^16.0.4Updated only
@rspack/core^1.2.2Updated only

20.3.x

ensure-nx-module-federation-package

Version: 20.3.0-beta.2

If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.

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

{% tabs %} {% tab label=“Before” %}

{
"dependencies": {}
}

{% /tab %} {% tab label=“After” %}

{
"dependencies": {
"@nx/module-federation": "20.3.0"
}
}

{% /tab %} {% /tabs %}

20.2.x

update-20-2-0-update-with-module-federation-import

Version: 20.2.0-beta.3

Update the withModuleFederation import use @nx/module-federation/rspack.

Migrate withModuleFederation Import to New Package

Update the withModuleFederation import to use @nx/module-federation/rspack.

Sample Code Changes

Update import paths for withModuleFederation and withModuleFederationForSSR.

{% tabs %} {% tab label=“Before” %}

import {
withModuleFederation,
withModuleFederationForSSR,
} from '@nx/rspack/module-federation';

{% /tab %} {% tab label=“After” %}

import {
withModuleFederation,
withModuleFederationForSSR,
} from '@nx/module-federation/rspack';

{% /tab %} {% /tabs %}

20.2.0-package-updates

Version: 20.2.0-beta.7

Packages

The following packages will be updated:

NameVersionAlways add to package.json
@rspack/core^1.1.5Updated only
@rspack/dev-server^1.0.9Updated only

19.7.x

19.7.0-package-updates

Version: 19.7.0-beta.1

Packages

The following packages will be updated:

NameVersionAlways add to package.json
@rspack/core^1.0.0Updated only
@rspack/dev-server^1.0.0Updated only
@rspack/plugin-react-refresh^1.0.0Updated only

19.3.x

19.3.0-package-updates

Version: 19.3.0-beta.0

Packages

The following packages will be updated:

NameVersionAlways add to package.json
@rspack/core^0.7.5Updated only
@rspack/dev-server^0.7.5Updated only
@rspack/plugin-minify^0.7.5Updated only