Skip to content
Home / Migrations / Create React AppRsbuild

Create React App Rsbuild

easy

Rsbuild is a Rspack-based build tool that aims for zero-config CRA replacement. Faster than Vite for large apps in some benchmarks.

Estimated: 1-2h · 5 steps
Progress0%
Step 1: Install Rsbuild
npm uninstall react-scripts && npm install -D @rsbuild/core @rsbuild/plugin-react
Step 2: Create rsbuild.config.ts
import { defineConfig } from '@rsbuild/core'
import { pluginReact } from '@rsbuild/plugin-react'
export default defineConfig({ plugins: [pluginReact()] })
Step 3: Update env vars

REACT_APP_* still works via Rsbuild's env handling, or rename to PUBLIC_* prefix.

Step 4: Move public/

public/ directory works the same way.

Step 5: Update scripts

package.json: dev → rsbuild dev, build → rsbuild build, preview → rsbuild preview.

App boots, build artifacts produced.