Migrate Create React App (CRA) or CRACO projects to Rsbuild. Use when a user asks to replace react-scripts or CRACO with Rsbuild and complete the migration safely.
Install
npx skillscat add rstackjs/agent-skills/migrate-cra-to-rsbuild Install via the SkillsCat registry.
Here's a thinking process: 1. **Analyze the Request:** - **Goal:** Write a 2-3 sentence plain-text summary in English - **Subject:** AI agent skill for migrating CRA/CRACO projects to Rsbuild - **Key points to cover:** What it does, what problem it solves, when to use it - **Constraints:** - Objective, factual tone - No marketing language, superlatives, calls to action - Natural prose, no bullet points, no headings, no markdown - No quotes wrapping - At most 60 words - **Output:** ONLY the summary text 2.
CRA to Rsbuild Migration
Workflow
Confirm current setup
- Read
package.jsonto confirm whether the project usesreact-scripts(CRA) or@craco/craco(CRACO). - Locate existing config files such as
craco.config.(js|ts|mjs|cjs)and any custom webpack overrides.
- Read
Use the official migration guide as the source of truth
- Core migration steps must be taken directly from:
Execute migration with minimal deviation
- Follow the guide to update dependencies and scripts.
- Apply Rsbuild config changes according to the guide’s instructions.
- If the project has CRACO-only customizations, map them to Rsbuild/Rspack equivalents after finishing the baseline guide steps.
Validate behavior after migration
- Run dev server to verify the project starts up without errors.
- Run build commands to verify the project builds successfully.