The Nx Plugin for Rsbuild contains executors and generators that support building applications using Rsbuild.
Setting Up @nx/rsbuild
Section titled “Setting Up @nx/rsbuild”Installation
Section titled “Installation”In any Nx workspace, you can install @nx/rsbuild by running the following command:
nx add @nx/rsbuildThis will install the correct version of @nx/rsbuild.
Using @nx/rsbuild
Section titled “Using @nx/rsbuild”Generate a new project using Rsbuild
Section titled “Generate a new project using Rsbuild”You can generate a new application that uses Rsbuild with the following command:
nx g @nx/react:app myapp --bundler=rsbuildThis will create a new application configured to use Rsbuild for building.