close
logologo
Guide
Config
Plugin
API
Community
Version
Changelog
Rsbuild 0.x Doc
English
简体中文
Guide
Config
Plugin
API
Community
Changelog
Rsbuild 0.x Doc
English
简体中文
logologo

Getting Started

Introduction
Quick start
Features
Glossary

Framework

React
Vue
Preact
Svelte
Solid

Basic

CLI
Dev server
Output files
Static assets
HTML
JSON
Wasm
TypeScript
Web Workers
Deploy static site
Upgrade Rsbuild

Configuration

Configure Rspack
Configure Rsbuild
Configure SWC

Styling

CSS
CSS Modules
CSS-in-JS
Tailwind CSS v4
Tailwind CSS v3
UnoCSS

Advanced

Path aliases
Environment variables
Hot module replacement
Browserslist
Browser compatibility
Module Federation
Multi-environment builds
Server-side rendering (SSR)
Testing

Optimization

Code splitting
Bundle size optimization
Improve build performance
Inline static assets

Migration

Migrating from Rsbuild 0.x
webpack
Create React App
Vue CLI
Vite
Vite plugin
Modern.js Builder

Debug

Debug mode
Build profiling
Use Rsdoctor

FAQ

General FAQ
Features FAQ
Exceptions FAQ
HMR FAQ
📝 Edit this page on GitHub
Previous PageDeploy static site
Next PageConfigure Rspack

#Upgrade Rsbuild

This section explains how to upgrade your project's Rsbuild dependencies to the latest version.

TIP
  • See Releases to learn about Rsbuild's release strategy.
  • See npm - @rsbuild/core to view the latest version.

#Using taze

We recommend using Taze to upgrade the Rsbuild version. Taze is a CLI tool for updating npm dependencies.

#Usage

Run the following command to upgrade all dependencies that include rsbuild in their names:

npx taze --include /rsbuild/ -w

The result will look similar to:

rsbuild - 3 patch

  @rsbuild/core               dev  ~1mo  ^1.0.0  →  ^1.2.0
  @rsbuild/plugin-react       dev  ~1mo  ^1.0.0  →  ^1.2.0
  @rsbuild/plugin-type-check  dev  ~1mo  ^1.0.0  →  ^1.2.0

ℹ changes written to package.json, run npm i to install updates.

You can also adjust the include pattern to match specific packages. For example, to upgrade only packages under the @rsbuild scope:

npx taze --include /@rsbuild/ -w

#Options

Here are some examples of using Taze options:

  • In a monorepo, you can add the -r option to upgrade recursively:
npx taze --include /rsbuild/ -w -r
  • Add -l to upgrade locked versions:
npx taze --include /rsbuild/ -w -l
  • To upgrade to a major version:
npx taze major --include /rsbuild/ -w

For more options, please refer to the taze documentation.