Skip to content

Rsbuild is an Rspack-based build tool for web applications. In an Rsbuild monorepo, Nx lets you build, serve, and cache every project from a single workspace.

The Nx Plugin for Rsbuild contains executors and generators that support building applications using Rsbuild, wiring each project into Nx.

The @nx/rsbuild plugin supports the following package versions.

PackageSupported VersionsDefault Installed
@rsbuild/core^1.0.0 || ^2.0.02.0.6

Nx generators install the latest supported version automatically when scaffolding new projects. When @rsbuild/core is already installed in your workspace, generators detect the installed version and keep it in place rather than overwriting it.

In any Nx workspace, you can install @nx/rsbuild by running the following command:

Terminal window
nx add @nx/rsbuild

This will install the correct version of @nx/rsbuild.

You can generate a new application that uses Rsbuild with the following command:

Terminal window
nx g @nx/react:app myapp --bundler=rsbuild

This will create a new application configured to use Rsbuild for building.

In CI, Nx runs nx affected to rebuild and retest only the projects a change touches, and caches results to skip repeated work.

For a complete pipeline, see Set up CI.