diff --git a/README.md b/README.md
index 5fb5f8301b..d9841bd028 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-
+
# Rsbuild
@@ -16,7 +16,7 @@ English | [Portuguese](./README.pt-BR.md) | [简体中文](./README.zh-CN.md)
Rsbuild is a high-performance build tool powered by Rspack. It provides a set of thoughtfully designed default build configs, offering an out-of-the-box development experience and can fully unleash the performance advantages of Rspack.
-Rsbuild provides [rich build features](https://rsbuild.dev/guide/start/features), including the compilation of TypeScript, JSX, Sass, Less, CSS Modules, Wasm, and others. It also supports Module Federation, image compression, type checking, PostCSS, Lightning CSS, and more.
+Rsbuild provides [rich build features](https://rsbuild.rs/guide/start/features), including the compilation of TypeScript, JSX, Sass, Less, CSS Modules, Wasm, and others. It also supports Module Federation, image compression, type checking, PostCSS, Lightning CSS, and more.
## 🚀 Performance
@@ -24,7 +24,7 @@ Powered by Rspack's Rust-based architecture, Rsbuild delivers blazing fast perfo
⚡️ **Build 1000 React components:**
-
+
> 📊 Benchmark results from [build-tools-performance](https://github.com/rspack-contrib/build-tools-performance).
@@ -32,15 +32,15 @@ Powered by Rspack's Rust-based architecture, Rsbuild delivers blazing fast perfo
Rsbuild is a build tool that is on par with [Vite](https://vitejs.dev/), [Create React App](https://github.com/facebook/create-react-app), or [Vue CLI](https://github.com/vuejs/vue-cli). They all come with builtin dev servers, command line tools, and sensible build configurations to provide the out-of-the-box experience.
-
+
### CRA / Vue CLI
You can think of Rsbuild as a modernized version of Create React App or Vue CLI, with these main differences:
- The underlying bundler is switched from webpack to Rspack, providing 5 to 10 times the build performance.
-- It is decoupled from frontend UI frameworks and supports all UI frameworks via [plugins](https://rsbuild.dev/plugins/list/), including React, Vue, Svelte, Solid, etc.
-- It offers better extensibility. You can extend Rsbuild flexibly via [Configurations](https://rsbuild.dev/config/), [Plugin API](https://rsbuild.dev/plugins/dev/), and [JavaScript API](https://rsbuild.dev/api/start/).
+- It is decoupled from frontend UI frameworks and supports all UI frameworks via [plugins](https://rsbuild.rs/plugins/list/), including React, Vue, Svelte, Solid, etc.
+- It offers better extensibility. You can extend Rsbuild flexibly via [Configurations](https://rsbuild.rs/config/), [Plugin API](https://rsbuild.rs/plugins/dev/), and [JavaScript API](https://rsbuild.rs/api/start/).
### Vite
@@ -48,7 +48,7 @@ Rsbuild shares many similarities with Vite, as they both aim to improve the fron
- **Ecosystem compatibility**: Rsbuild is compatible with most webpack plugins and all Rspack plugins, while Vite is compatible with Rollup plugins. If you're currently using more plugins and loaders from the webpack ecosystem, migrating to Rsbuild would be relatively easy.
- **Production consistency**: Rsbuild uses Rspack for bundling during both the development and production builds, thus ensuring a high level of consistency between the development and production outputs. This is also one of the goals Vite aims to achieve with Rolldown.
-- **Module Federation**: The Rsbuild team works closely with the [Module Federation](https://rsbuild.dev/guide/advanced/module-federation) development team, providing first-class support for Module Federation to help you develop large web applications with micro frontend architecture.
+- **Module Federation**: The Rsbuild team works closely with the [Module Federation](https://rsbuild.rs/guide/advanced/module-federation) development team, providing first-class support for Module Federation to help you develop large web applications with micro frontend architecture.
## 🔥 Features
@@ -56,7 +56,7 @@ Rsbuild has the following features:
- **Easy to Configure**: One of the goals of Rsbuild is to provide out-of-the-box build capabilities for Rspack users, allowing developers to start a web project with zero configuration. In addition, Rsbuild provides semantic build configuration to reduce the learning curve for Rspack configuration.
-- **Performance Oriented**: Rsbuild integrates high-performance Rust-based tools from the community, including [Rspack](https://rspack.dev), [SWC](https://swc.rs/) and [Lightning CSS](https://lightningcss.dev/), to deliver first-class build speed and development experience.
+- **Performance Oriented**: Rsbuild integrates high-performance Rust-based tools from the community, including [Rspack](https://rspack.rs), [SWC](https://swc.rs/) and [Lightning CSS](https://lightningcss.dev/), to deliver first-class build speed and development experience.
- **Plugin Ecosystem**: Rsbuild has a lightweight plugin system and includes a range of high-quality official plugins. Furthermore, Rsbuild is compatible with most webpack plugins and all Rspack plugins, allowing users to leverage existing community or in-house plugins in Rsbuild without the need for rewriting code.
@@ -66,7 +66,7 @@ Rsbuild has the following features:
## 📚 Getting started
-To get started with Rsbuild, see the [Quick start](https://rsbuild.dev/guide/start/quick-start).
+To get started with Rsbuild, see the [Quick start](https://rsbuild.rs/guide/start/quick-start).
## 🦀 Rstack
diff --git a/README.pt-BR.md b/README.pt-BR.md
index e848b4622b..b3a8cfcbe3 100644
--- a/README.pt-BR.md
+++ b/README.pt-BR.md
@@ -1,5 +1,5 @@
-
+
# Rsbuild
@@ -16,7 +16,7 @@
Rsbuild é uma ferramenta de build de alta performance com base no Rspack. Ele fornece um conjunto de configurações de compilação padrão cuidadosamente projetadas, oferecendo uma experiência de desenvolvimento pronta para uso e pode liberar totalmente as vantagens de desempenho do Rspack.
-Rsbuild provê [ricas funcionalidades de build](https://rsbuild.dev/guide/start/features), incluindo a compilação de TypeScript, JSX, Sass, Less, CSS Modules, Wasm, e outros. Ele também suporta Module Federation, compressão de imagem, checagem de tipos, PostCSS, Lightning CSS, e mais.
+Rsbuild provê [ricas funcionalidades de build](https://rsbuild.rs/guide/start/features), incluindo a compilação de TypeScript, JSX, Sass, Less, CSS Modules, Wasm, e outros. Ele também suporta Module Federation, compressão de imagem, checagem de tipos, PostCSS, Lightning CSS, e mais.
## 🚀 Desempenho
@@ -24,7 +24,7 @@ Alimentado pela arquitetura baseada em Rust do Rspack, o Rsbuild oferece um dese
⚡️ **Construa 1000 componentes React:**
-
+
> 📊 Resultados do benchmark do [build-tools-performance](https://github.com/rspack-contrib/build-tools-performance).
@@ -32,15 +32,15 @@ Alimentado pela arquitetura baseada em Rust do Rspack, o Rsbuild oferece um dese
Rsbuild é uma ferramenta de build que está no mesmo patamar do [Vite](https://vitejs.dev/), [Create React App](https://github.com/facebook/create-react-app), ou [Vue CLI](https://github.com/vuejs/vue-cli). Todos eles possuem um servidor de desenvolvimento imbutido, ferramentas de linha de comando, e configurações de build que provê uma experiência pronta para uso.
-
+
### CRA / Vue CLI
Você pode imaginar o Rsbuild como uma versão moderna do Create React App ou Vue CLI, com estas principais diferenças:
- O bundler por baixo é trocado de webpack para Rspack, provendo 5 à 10 vezes mais rápido o desempenho de build.
-- É desacoplado de frameworks de frontend e suporta todos os frameworks de interface, por meio de [plugins](https://rsbuild.dev/plugins/list/), incluíndo React, Vue, Svelte, Solid, etc.
-- Oferece melhor extensibilidade. Você pode extender o Rsbuild flexivelmente via [Configurações](https://rsbuild.dev/config/), [Plugin API](https://rsbuild.dev/plugins/dev/), e [JavaScript API](https://rsbuild.dev/api/start/).
+- É desacoplado de frameworks de frontend e suporta todos os frameworks de interface, por meio de [plugins](https://rsbuild.rs/plugins/list/), incluíndo React, Vue, Svelte, Solid, etc.
+- Oferece melhor extensibilidade. Você pode extender o Rsbuild flexivelmente via [Configurações](https://rsbuild.rs/config/), [Plugin API](https://rsbuild.rs/plugins/dev/), e [JavaScript API](https://rsbuild.rs/api/start/).
### Vite
@@ -48,7 +48,7 @@ Rsbuild compartilha muitas similaridades com Vite, assim como ambos miram em mel
- **Compatibilidade do ecossistema**: Rsbuild é compatível com a maioria dos plug-ins para webpack e todos os plug-ins do Rspack, enquanto Vite é compatível com plug-ins do Rollup. Se você estiver usando mais plug-ins e carregadores do ecossistema do webpack, a migração para o Rsbuild será relativamente fácil.
- **Consistência em produção**: Rsbuild usa o Rspack para empacotamento durante as compilações de desenvolvimento e produção, garantindo assim um alto nível de consistência entre os resultados de desenvolvimento e produção. Esse também é um dos objetivos que a Vite pretende alcançar com o Rolldown.
-- **Module Federation**: O time do Rsbuild trabalha próximo com o time de [Module Federation](https://rsbuild.dev/guide/advanced/module-federation), fornecendo suporte de primeira classe para o Module Federation para ajudá-lo a desenvolver grandes aplicativos da Web com arquitetura de micro frontend.
+- **Module Federation**: O time do Rsbuild trabalha próximo com o time de [Module Federation](https://rsbuild.rs/guide/advanced/module-federation), fornecendo suporte de primeira classe para o Module Federation para ajudá-lo a desenvolver grandes aplicativos da Web com arquitetura de micro frontend.
## 🔥 Recursos
@@ -56,7 +56,7 @@ O Rsbuild tem os seguintes recursos:
- **Fácil de Configurar**: Um dos objetivos do Rsbuild é fornecer recursos de compilação prontos para uso para os usuários do Rspack, permitindo que os desenvolvedores iniciem um projeto da Web com configuração zero. Além disso, o Rsbuild fornece configuração de compilação semântica para reduzir a curva de aprendizado da configuração do Rspack.
-- **Orientado para o desempenho**: Rsbuild integra ferramentas de alto desempenho baseadas em Rust da comunidade, incluindo [Rspack](https://rspack.dev), [SWC](https://swc.rs/) e [Lightning CSS](https://lightningcss.dev/), para oferecer velocidade de compilação e experiência de desenvolvimento de primeira classe.
+- **Orientado para o desempenho**: Rsbuild integra ferramentas de alto desempenho baseadas em Rust da comunidade, incluindo [Rspack](https://rspack.rs), [SWC](https://swc.rs/) e [Lightning CSS](https://lightningcss.dev/), para oferecer velocidade de compilação e experiência de desenvolvimento de primeira classe.
- **Ecossistema de plug-ins**: Rsbuild tem um sistema de plug-ins leve e inclui uma variedade de plug-ins oficiais de alta qualidade. Além disso, o Rsbuild é compatível com a maioria dos plug-ins do webpack e todos os plug-ins do Rspack, permitindo que os usuários aproveitem os plug-ins existentes da comunidade ou internos no Rsbuild sem a necessidade de reescrever o código.
@@ -66,7 +66,7 @@ O Rsbuild tem os seguintes recursos:
## 📚 Primeiros passos
-Para começar a usar o Rsbuild, consulte a seção [Início Rápido](https://rsbuild.dev/guide/start/quick-start).
+Para começar a usar o Rsbuild, consulte a seção [Início Rápido](https://rsbuild.rs/guide/start/quick-start).
## 🦀 Rstack
diff --git a/README.zh-CN.md b/README.zh-CN.md
index a9b1df5df7..6e462b19ba 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -1,5 +1,5 @@
-
+
# Rsbuild
@@ -14,9 +14,9 @@
[English](./README.md) | [Portuguese](./README.pt-BR.md) | 简体中文
-Rsbuild 是由 [Rspack](https://rspack.dev/) 驱动的高性能构建工具,它默认包含了一套精心设计的构建配置,提供开箱即用的开发体验,并能够充分发挥出 Rspack 的性能优势。
+Rsbuild 是由 [Rspack](https://rspack.rs/) 驱动的高性能构建工具,它默认包含了一套精心设计的构建配置,提供开箱即用的开发体验,并能够充分发挥出 Rspack 的性能优势。
-Rsbuild 提供 [丰富的构建功能](https://rsbuild.dev/zh/guide/start/features),包括编译 TypeScript,JSX,Sass,Less,CSS Modules,Wasm,以及其他资源,也支持模块联邦、图片压缩、类型检查、PostCSS,Lightning CSS 等功能。
+Rsbuild 提供 [丰富的构建功能](https://rsbuild.rs/zh/guide/start/features),包括编译 TypeScript,JSX,Sass,Less,CSS Modules,Wasm,以及其他资源,也支持模块联邦、图片压缩、类型检查、PostCSS,Lightning CSS 等功能。
## 🚀 性能
@@ -24,7 +24,7 @@ Rsbuild 提供 [丰富的构建功能](https://rsbuild.dev/zh/guide/start/featur
⚡️ **构建 1000 个 React 组件:**
-
+
> 📊 Benchmark 结果来自 [build-tools-performance](https://github.com/rspack-contrib/build-tools-performance)。
@@ -32,15 +32,15 @@ Rsbuild 提供 [丰富的构建功能](https://rsbuild.dev/zh/guide/start/featur
Rsbuild 是与 [Vite](https://vitejs.dev/)、[Create React App](https://github.com/facebook/create-react-app) 或 [Vue CLI](https://github.com/vuejs/vue-cli) 相似的构建工具,它们都默认包含了开发服务器、命令行工具和合理的构建配置,以此来提供开箱即用的体验。
-
+
### CRA / Vue CLI
你可以将 Rsbuild 理解为一个现代化的 Create React App 或 Vue CLI,它与这些工具的主要区别在于:
- 底层的打包工具由 webpack 替换为 Rspack,提供 5 ~ 10 倍的构建性能。
-- 与前端 UI 框架解耦,并通过 [插件](https://rsbuild.dev/zh/plugins/list/) 来支持所有 UI 框架,包括 React、Vue、Svelte、Solid 等。
-- 提供更好的扩展性,你可以通过 [配置](https://rsbuild.dev/zh/config/)、[插件 API](https://rsbuild.dev/zh/plugins/dev/) 和 [JavaScript API](https://rsbuild.dev/zh/api/start/) 来灵活地扩展 Rsbuild。
+- 与前端 UI 框架解耦,并通过 [插件](https://rsbuild.rs/zh/plugins/list/) 来支持所有 UI 框架,包括 React、Vue、Svelte、Solid 等。
+- 提供更好的扩展性,你可以通过 [配置](https://rsbuild.rs/zh/config/)、[插件 API](https://rsbuild.rs/zh/plugins/dev/) 和 [JavaScript API](https://rsbuild.rs/zh/api/start/) 来灵活地扩展 Rsbuild。
### Vite
@@ -48,7 +48,7 @@ Rsbuild 与 Vite 有许多相似之处,它们皆致力于提升前端的开发
- **生态兼容性**:Rsbuild 兼容大部分的 webpack 插件和所有 Rspack 插件,而 Vite 则是兼容 Rollup 插件。如果你目前更多地使用了 webpack 生态的插件和 loaders,那么迁移到 Rsbuild 是相对容易的。
- **生产一致性**:Rsbuild 在开发阶段和生产构建均使用 Rspack 进行打包,因此开发和生产构建的产物具备较强的一致性,这也是 Vite 通过 Rolldown 想要实现的目标之一。
-- **模块联邦**:Rsbuild 团队与 [Module Federation](https://rsbuild.dev/zh/guide/advanced/module-federation) 的开发团队密切合作,并为 Module Federation 提供一流的支持,帮助你开发微前端架构的大型 Web 应用。
+- **模块联邦**:Rsbuild 团队与 [Module Federation](https://rsbuild.rs/zh/guide/advanced/module-federation) 的开发团队密切合作,并为 Module Federation 提供一流的支持,帮助你开发微前端架构的大型 Web 应用。
## 🔥 特性
@@ -56,7 +56,7 @@ Rsbuild 具备以下特性:
- **易于配置**:Rsbuild 的目标之一,是为 Rspack 用户提供开箱即用的构建能力,使开发者能够在零配置的情况下开发 web 项目。同时,Rsbuild 提供一套语义化的构建配置,以降低 Rspack 配置的学习成本。
-- **性能优先**:Rsbuild 集成了社区中基于 Rust 的高性能工具,包括 [Rspack](https://rspack.dev),[SWC](https://swc.rs/) 和 [Lightning CSS](https://lightningcss.dev/),以提供一流的构建速度和开发体验。
+- **性能优先**:Rsbuild 集成了社区中基于 Rust 的高性能工具,包括 [Rspack](https://rspack.rs),[SWC](https://swc.rs/) 和 [Lightning CSS](https://lightningcss.dev/),以提供一流的构建速度和开发体验。
- **插件生态**:Rsbuild 内置一个轻量级的插件系统,提供一系列高质量的官方插件。此外,Rsbuild 兼容大部分的 webpack 插件和所有的 Rspack 插件,这意味着你可以在 Rsbuild 中使用社区或公司内沉淀的现有插件,而无须重写相关代码。
@@ -66,7 +66,7 @@ Rsbuild 具备以下特性:
## 📚 快速上手
-你可以参考 [快速上手](https://rsbuild.dev/zh/guide/start/quick-start) 来开始体验 Rsbuild。
+你可以参考 [快速上手](https://rsbuild.rs/zh/guide/start/quick-start) 来开始体验 Rsbuild。
## 🦀 Rstack
diff --git a/packages/compat/plugin-webpack-swc/README.md b/packages/compat/plugin-webpack-swc/README.md
index 9a862c9d50..a92c637e04 100644
--- a/packages/compat/plugin-webpack-swc/README.md
+++ b/packages/compat/plugin-webpack-swc/README.md
@@ -12,7 +12,7 @@ An Rsbuild plugin to use SWC as the JavaScript compiler with `@rsbuild/webpack`.
## Documentation
-See [Documentation](https://rsbuild.dev).
+See [Documentation](https://rsbuild.rs).
## License
diff --git a/packages/compat/webpack/README.md b/packages/compat/webpack/README.md
index 6d2133fbe5..70a0169b24 100644
--- a/packages/compat/webpack/README.md
+++ b/packages/compat/webpack/README.md
@@ -33,7 +33,7 @@ export default defineConfig({
## Documentation
-See [Documentation](https://rsbuild.dev).
+See [Documentation](https://rsbuild.rs).
## License
diff --git a/packages/compat/webpack/package.json b/packages/compat/webpack/package.json
index dd4d2b531d..d8afb1294e 100644
--- a/packages/compat/webpack/package.json
+++ b/packages/compat/webpack/package.json
@@ -1,7 +1,7 @@
{
"name": "@rsbuild/webpack",
"version": "1.3.2",
- "homepage": "https://rsbuild.dev",
+ "homepage": "https://rsbuild.rs",
"repository": {
"type": "git",
"url": "https://github.com/web-infra-dev/rsbuild",
diff --git a/packages/core/README.md b/packages/core/README.md
index bd627020cc..9816964d42 100644
--- a/packages/core/README.md
+++ b/packages/core/README.md
@@ -1,5 +1,5 @@
-
+
# @rsbuild/core
@@ -16,7 +16,7 @@ The Rspack-based build tool. It's fast, out-of-the-box and extensible.
## Documentation
-See [Documentation](https://rsbuild.dev/).
+See [Documentation](https://rsbuild.rs/).
## Contributing
diff --git a/packages/core/package.json b/packages/core/package.json
index 4cd0e05513..622ef53594 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -2,7 +2,7 @@
"name": "@rsbuild/core",
"version": "1.3.22",
"description": "The Rspack-based build tool.",
- "homepage": "https://rsbuild.dev",
+ "homepage": "https://rsbuild.rs",
"bugs": {
"url": "https://github.com/web-infra-dev/rsbuild/issues"
},
diff --git a/packages/core/src/client/hmr.ts b/packages/core/src/client/hmr.ts
index c440b63b9a..581bb1473f 100644
--- a/packages/core/src/client/hmr.ts
+++ b/packages/core/src/client/hmr.ts
@@ -141,7 +141,7 @@ function tryApplyUpdates() {
return;
}
- // https://rspack.dev/api/runtime-api/module-variables#importmetawebpackhot
+ // https://rspack.rs/api/runtime-api/module-variables#importmetawebpackhot
import.meta.webpackHot.check(true).then(
(updatedModules) => handleApplyUpdates(null, updatedModules),
(err) => handleApplyUpdates(err, null),
diff --git a/packages/core/src/plugins/nonce.ts b/packages/core/src/plugins/nonce.ts
index cc85a50353..ee107d857f 100644
--- a/packages/core/src/plugins/nonce.ts
+++ b/packages/core/src/plugins/nonce.ts
@@ -30,7 +30,7 @@ export const pluginNonce = (): RsbuildPlugin => ({
}
// apply __webpack_nonce__
- // https://rspack.dev/api/runtime-api/module-variables#__webpack_nonce__
+ // https://rspack.rs/api/runtime-api/module-variables#__webpack_nonce__
const injectCode = createVirtualModule(
`__webpack_nonce__ = "${nonce}";`,
);
diff --git a/packages/core/src/plugins/swc.ts b/packages/core/src/plugins/swc.ts
index 9ac4aaabc4..ab2b6fbda9 100644
--- a/packages/core/src/plugins/swc.ts
+++ b/packages/core/src/plugins/swc.ts
@@ -169,7 +169,7 @@ export const pluginSwc = (): RsbuildPlugin => ({
/**
* If a script is imported with data URI, it can be compiled by babel too.
* This is used by some frameworks to create virtual entry.
- * https://rspack.dev/api/runtime-api/module-methods#import
+ * https://rspack.rs/api/runtime-api/module-methods#import
* @example: import x from 'data:text/javascript,export default 1;';
*/
dataUriRule.resolve
diff --git a/packages/core/src/server/overlay.ts b/packages/core/src/server/overlay.ts
index f47a1b0754..67ed70fa99 100644
--- a/packages/core/src/server/overlay.ts
+++ b/packages/core/src/server/overlay.ts
@@ -177,7 +177,7 @@ export function genOverlayHTML(errors: string[], root?: string) {
${htmlItems.join('\n\n').trim()}
diff --git a/packages/core/src/types/config.ts b/packages/core/src/types/config.ts
index f6af654296..c2a859ed2a 100644
--- a/packages/core/src/types/config.ts
+++ b/packages/core/src/types/config.ts
@@ -191,7 +191,7 @@ export interface ToolsConfig {
*/
lightningcssLoader?: boolean | ConfigChain;
/**
- * Modify the options of [CssExtractRspackPlugin](https://rspack.dev/plugins/rspack/css-extract-rspack-plugin).
+ * Modify the options of [CssExtractRspackPlugin](https://rspack.rs/plugins/rspack/css-extract-rspack-plugin).
*/
cssExtract?: CSSExtractOptions;
/**
@@ -251,7 +251,7 @@ export interface SourceConfig {
* Specify additional JavaScript files that need to be compiled by SWC.
* Through the `source.include` config, you can specify directories or modules
* that need to be compiled by Rsbuild. The usage of `source.include` is
- * consistent with [Rule.include](https://rspack.dev/config/module#ruleinclude)
+ * consistent with [Rule.include](https://rspack.rs/config/module#ruleinclude)
* in Rspack, which supports passing in strings or regular expressions to match
* the module path.
* @default
@@ -752,7 +752,7 @@ export interface PerformanceConfig {
/**
* Whether capture timing information for each module,
- * same as the [profile](https://rspack.dev/config/other-options#profile) config of Rspack.
+ * same as the [profile](https://rspack.rs/config/other-options#profile) config of Rspack.
*/
profile?: boolean;
}
@@ -1115,7 +1115,7 @@ export interface OutputConfig {
/**
* At build time, prevent some `import` dependencies from being packed into bundles in
* your code, and instead fetch them externally at runtime.
- * For more information, please see: [Rspack Externals](https://rspack.dev/config/externals)
+ * For more information, please see: [Rspack Externals](https://rspack.rs/config/externals)
* @default undefined
*/
externals?: Externals;
@@ -1588,7 +1588,7 @@ export interface DevConfig {
liveReload?: boolean;
/**
* Set the URL prefix of static assets in development mode,
- * similar to the [output.publicPath](https://rspack.dev/config/output#outputpublicpath)
+ * similar to the [output.publicPath](https://rspack.rs/config/output#outputpublicpath)
* config of Rspack.
*/
assetPrefix?: string | boolean;
@@ -1662,7 +1662,7 @@ export interface ResolveConfig {
/**
* Set the alias for the module path, which is used to simplify the import path or
* redirect the module reference.
- * Similar to the [resolve.alias](https://rspack.dev/config/resolve) config of Rspack.
+ * Similar to the [resolve.alias](https://rspack.rs/config/resolve) config of Rspack.
*/
alias?: ConfigChain;
/**
diff --git a/packages/core/src/types/plugin.ts b/packages/core/src/types/plugin.ts
index 71a0840eda..a177a6b94e 100644
--- a/packages/core/src/types/plugin.ts
+++ b/packages/core/src/types/plugin.ts
@@ -323,60 +323,60 @@ export type TransformHandler = (
export type TransformDescriptor = {
/**
* Include modules that match the test assertion, the same as `rule.test`
- * @see https://rspack.dev/config/module#ruletest
+ * @see https://rspack.rs/config/module#ruletest
*/
test?: Rspack.RuleSetCondition;
/**
* A condition that matches the resource query.
- * @see https://rspack.dev/config/module#ruleresourcequery
+ * @see https://rspack.rs/config/module#ruleresourcequery
*/
resourceQuery?: Rspack.RuleSetCondition;
/**
* Match based on the Rsbuild targets and only apply the transform to
* certain targets.
- * @see https://rsbuild.dev/config/output/target
+ * @see https://rsbuild.rs/config/output/target
*/
targets?: RsbuildTarget[];
/**
* Match based on the Rsbuild environment names and only apply the transform
* to certain environments.
- * @see https://rsbuild.dev/config/environments
+ * @see https://rsbuild.rs/config/environments
*/
environments?: string[];
/**
* If raw is `true`, the transform handler will receive the Buffer type code
* instead of the string type.
- * @see https://rspack.dev/api/loader-api/examples#raw-loader
+ * @see https://rspack.rs/api/loader-api/examples#raw-loader
*/
raw?: boolean;
/**
* Marks the layer of the matching module, can be used to group a group of
* modules into one layer
- * @see https://rspack.dev/config/module#rulelayer
+ * @see https://rspack.rs/config/module#rulelayer
*/
layer?: string;
/**
* Matches all modules that match this resource, and will match against layer of
* the module that issued the current module.
- * @see https://rspack.dev/config/module#ruleissuerlayer
+ * @see https://rspack.rs/config/module#ruleissuerlayer
*/
issuerLayer?: string;
/**
* Matches all modules that match this resource, and will match against Resource
* (the absolute path without query and fragment) of the module that issued the
* current module.
- * @see https://rspack.dev/config/module#ruleissuer
+ * @see https://rspack.rs/config/module#ruleissuer
*/
issuer?: Rspack.RuleSetCondition;
/**
* Matches [import attributes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with)
- * @see https://rspack.dev/config/module#rulewith
+ * @see https://rspack.rs/config/module#rulewith
*/
with?: Record;
/**
* Matches modules based on MIME type instead of file extension. It's primarily
* useful for data URI module (like `data:text/javascript,...`).
- * @see https://rspack.dev/config/module#rulemimetype
+ * @see https://rspack.rs/config/module#rulemimetype
*/
mimetype?: Rspack.RuleSetCondition;
/**
@@ -385,7 +385,7 @@ export type TransformDescriptor = {
* transform functions (or Rspack loaders).
* - When specified as 'post', the transform function will execute after other
* transform functions (or Rspack loaders).
- * @see https://rspack.dev/config/module#ruleenforce
+ * @see https://rspack.rs/config/module#ruleenforce
*/
enforce?: 'pre' | 'post';
};
@@ -420,12 +420,12 @@ export type ProcessAssetsDescriptor = {
stage: ProcessAssetsStage;
/**
* Match based on the Rsbuild targets and only process the assets of certain targets.
- * @see https://rsbuild.dev/config/output/target
+ * @see https://rsbuild.rs/config/output/target
*/
targets?: RsbuildTarget[];
/**
* Match based on the Rsbuild environment names and only process the assets of certain environments.
- * @see https://rsbuild.dev/config/environments
+ * @see https://rsbuild.rs/config/environments
*/
environments?: string[];
};
@@ -560,7 +560,7 @@ export type RsbuildPluginAPI = Readonly<{
/**
* A callback function that is triggered after running the production build.
* You can access the build result information via the
- * [stats](https://rspack.dev/api/javascript-api/stats) parameter.
+ * [stats](https://rspack.rs/api/javascript-api/stats) parameter.
*/
onAfterBuild: PluginHook;
/**
@@ -572,7 +572,7 @@ export type RsbuildPluginAPI = Readonly<{
/**
* A callback function that is triggered after the compilation of a single environment.
* You can access the build result information via the
- * [stats](https://rspack.dev/api/javascript-api/stats) parameter.
+ * [stats](https://rspack.rs/api/javascript-api/stats) parameter.
*/
onAfterEnvironmentCompile: PluginHook;
/**
@@ -630,12 +630,12 @@ export type RsbuildPluginAPI = Readonly<{
onExit: PluginHook;
/**
* Modify assets before emitting, the same as Rspack's
- * [compilation.hooks.processAssets](https://rspack.dev/api/plugin-api/compilation-hooks#processassets) hook.
+ * [compilation.hooks.processAssets](https://rspack.rs/api/plugin-api/compilation-hooks#processassets) hook.
*/
processAssets: ProcessAssetsHook;
/**
* Intercept and modify module request information before module resolution begins.
- * The same as Rspack's [normalModuleFactory.hooks.resolve](https://rspack.dev/api/plugin-api/normal-module-factory-hooks#resolve) hook.
+ * The same as Rspack's [normalModuleFactory.hooks.resolve](https://rspack.rs/api/plugin-api/normal-module-factory-hooks#resolve) hook.
*/
resolve: ResolveHook;
/**
diff --git a/packages/core/src/types/rsbuild.ts b/packages/core/src/types/rsbuild.ts
index 8cc6014eb3..8db8845f61 100644
--- a/packages/core/src/types/rsbuild.ts
+++ b/packages/core/src/types/rsbuild.ts
@@ -65,7 +65,7 @@ export type Build = (options?: BuildOptions) => Promise<{
*/
close: () => Promise;
/**
- * Rspack's [stats](https://rspack.dev/api/javascript-api/stats) object.
+ * Rspack's [stats](https://rspack.rs/api/javascript-api/stats) object.
*/
stats?: Rspack.Stats | Rspack.MultiStats;
}>;
@@ -259,7 +259,7 @@ export type RsbuildInstance = {
options?: InspectConfigOptions,
) => Promise;
/**
- * Create an Rspack [Compiler](https://rspack.dev/api/javascript-api/compiler)
+ * Create an Rspack [Compiler](https://rspack.rs/api/javascript-api/compiler)
* instance. If there are multiple [environments](/config/environments) for
* this build, the return value is `MultiCompiler`.
*/
diff --git a/packages/create-rsbuild/README.md b/packages/create-rsbuild/README.md
index 203462d343..68f206acad 100644
--- a/packages/create-rsbuild/README.md
+++ b/packages/create-rsbuild/README.md
@@ -1,5 +1,5 @@
-
+
# create-rsbuild
@@ -33,7 +33,7 @@ npx create-rsbuild -d my-project -t react
## Documentation
-See [Documentation](https://rsbuild.dev/guide/start/quick-start).
+See [Documentation](https://rsbuild.rs/guide/start/quick-start).
## License
diff --git a/packages/create-rsbuild/package.json b/packages/create-rsbuild/package.json
index aff11bb9f6..ac98dad843 100644
--- a/packages/create-rsbuild/package.json
+++ b/packages/create-rsbuild/package.json
@@ -2,7 +2,7 @@
"name": "create-rsbuild",
"version": "1.3.1",
"description": "Create a new Rsbuild project",
- "homepage": "https://rsbuild.dev",
+ "homepage": "https://rsbuild.rs",
"repository": {
"type": "git",
"url": "https://github.com/web-infra-dev/rsbuild",
diff --git a/packages/plugin-babel/README.md b/packages/plugin-babel/README.md
index c8864a7f5d..bd3f938b67 100644
--- a/packages/plugin-babel/README.md
+++ b/packages/plugin-babel/README.md
@@ -12,7 +12,7 @@ An Rsbuild plugin to use Babel to transpile the code.
## Documentation
-See [Documentation](https://rsbuild.dev/plugins/list/plugin-babel).
+See [Documentation](https://rsbuild.rs/plugins/list/plugin-babel).
## License
diff --git a/packages/plugin-less/README.md b/packages/plugin-less/README.md
index 4cc791d5b3..a72e4fad03 100644
--- a/packages/plugin-less/README.md
+++ b/packages/plugin-less/README.md
@@ -12,7 +12,7 @@ An Rsbuild plugin to use Less as the CSS preprocessor.
## Documentation
-See [Documentation](https://rsbuild.dev/plugins/list/plugin-less).
+See [Documentation](https://rsbuild.rs/plugins/list/plugin-less).
## License
diff --git a/packages/plugin-less/package.json b/packages/plugin-less/package.json
index 9beb6a32af..c996e833db 100644
--- a/packages/plugin-less/package.json
+++ b/packages/plugin-less/package.json
@@ -2,7 +2,7 @@
"name": "@rsbuild/plugin-less",
"version": "1.2.4",
"description": "Less plugin for Rsbuild",
- "homepage": "https://rsbuild.dev",
+ "homepage": "https://rsbuild.rs",
"repository": {
"type": "git",
"url": "https://github.com/web-infra-dev/rsbuild",
diff --git a/packages/plugin-preact/README.md b/packages/plugin-preact/README.md
index 5c45747a0b..9e6f297de9 100644
--- a/packages/plugin-preact/README.md
+++ b/packages/plugin-preact/README.md
@@ -12,7 +12,7 @@ An Rsbuild plugin to provide support for Preact.
## Documentation
-See [Documentation](https://rsbuild.dev/plugins/list/plugin-preact).
+See [Documentation](https://rsbuild.rs/plugins/list/plugin-preact).
## License
diff --git a/packages/plugin-react/README.md b/packages/plugin-react/README.md
index 252cbeabf6..430f582c27 100644
--- a/packages/plugin-react/README.md
+++ b/packages/plugin-react/README.md
@@ -12,7 +12,7 @@ An Rsbuild plugin to provide support for React, integrating features such as JSX
## Documentation
-See [Documentation](https://rsbuild.dev/plugins/list/plugin-react).
+See [Documentation](https://rsbuild.rs/plugins/list/plugin-react).
## License
diff --git a/packages/plugin-react/src/index.ts b/packages/plugin-react/src/index.ts
index fecc061a60..88ded10e8b 100644
--- a/packages/plugin-react/src/index.ts
+++ b/packages/plugin-react/src/index.ts
@@ -35,7 +35,7 @@ export type PluginReactOptions = {
enableProfiler?: boolean;
/**
* Options passed to `@rspack/plugin-react-refresh`
- * @see https://rspack.dev/guide/tech/react#rspackplugin-react-refresh
+ * @see https://rspack.rs/guide/tech/react#rspackplugin-react-refresh
*/
reactRefreshOptions?: ReactRefreshOptions;
/**
diff --git a/packages/plugin-sass/README.md b/packages/plugin-sass/README.md
index 3247bb6763..ae852c7b18 100644
--- a/packages/plugin-sass/README.md
+++ b/packages/plugin-sass/README.md
@@ -12,7 +12,7 @@ An Rsbuild plugin to use Sass as the CSS preprocessor.
## Documentation
-See [Documentation](https://rsbuild.dev/plugins/list/plugin-sass).
+See [Documentation](https://rsbuild.rs/plugins/list/plugin-sass).
## License
diff --git a/packages/plugin-sass/package.json b/packages/plugin-sass/package.json
index fa067862fa..17c9aff933 100644
--- a/packages/plugin-sass/package.json
+++ b/packages/plugin-sass/package.json
@@ -2,7 +2,7 @@
"name": "@rsbuild/plugin-sass",
"version": "1.3.1",
"description": "Sass plugin for Rsbuild",
- "homepage": "https://rsbuild.dev",
+ "homepage": "https://rsbuild.rs",
"repository": {
"type": "git",
"url": "https://github.com/web-infra-dev/rsbuild",
diff --git a/packages/plugin-solid/README.md b/packages/plugin-solid/README.md
index 42b4a2f15e..587ffc9ef5 100644
--- a/packages/plugin-solid/README.md
+++ b/packages/plugin-solid/README.md
@@ -12,7 +12,7 @@ An Rsbuild plugin to provide support for Solid.
## Documentation
-See [Documentation](https://rsbuild.dev/plugins/list/plugin-solid).
+See [Documentation](https://rsbuild.rs/plugins/list/plugin-solid).
## License
diff --git a/packages/plugin-solid/package.json b/packages/plugin-solid/package.json
index 8bb5c3289e..c4e95c3bc3 100644
--- a/packages/plugin-solid/package.json
+++ b/packages/plugin-solid/package.json
@@ -2,7 +2,7 @@
"name": "@rsbuild/plugin-solid",
"version": "1.0.5",
"description": "Solid plugin for Rsbuild",
- "homepage": "https://rsbuild.dev",
+ "homepage": "https://rsbuild.rs",
"repository": {
"type": "git",
"url": "https://github.com/web-infra-dev/rsbuild",
diff --git a/packages/plugin-stylus/README.md b/packages/plugin-stylus/README.md
index 7d4890ac07..517ad60c27 100644
--- a/packages/plugin-stylus/README.md
+++ b/packages/plugin-stylus/README.md
@@ -12,7 +12,7 @@ An Rsbuild plugin to use Stylus as the CSS preprocessor.
## Documentation
-See [Documentation](https://rsbuild.dev/plugins/list/plugin-stylus).
+See [Documentation](https://rsbuild.rs/plugins/list/plugin-stylus).
## License
diff --git a/packages/plugin-stylus/package.json b/packages/plugin-stylus/package.json
index e802dce873..495213fb54 100644
--- a/packages/plugin-stylus/package.json
+++ b/packages/plugin-stylus/package.json
@@ -2,7 +2,7 @@
"name": "@rsbuild/plugin-stylus",
"version": "1.1.1",
"description": "Stylus plugin for Rsbuild",
- "homepage": "https://rsbuild.dev",
+ "homepage": "https://rsbuild.rs",
"repository": {
"type": "git",
"url": "https://github.com/web-infra-dev/rsbuild",
diff --git a/packages/plugin-svelte/README.md b/packages/plugin-svelte/README.md
index d4ea4b4ef3..00136163d7 100644
--- a/packages/plugin-svelte/README.md
+++ b/packages/plugin-svelte/README.md
@@ -12,7 +12,7 @@ An Rsbuild plugin to provide support for Svelte.
## Documentation
-See [Documentation](https://rsbuild.dev/plugins/list/plugin-svelte).
+See [Documentation](https://rsbuild.rs/plugins/list/plugin-svelte).
## License
diff --git a/packages/plugin-svgr/README.md b/packages/plugin-svgr/README.md
index c44d442f78..744c3a0655 100644
--- a/packages/plugin-svgr/README.md
+++ b/packages/plugin-svgr/README.md
@@ -12,7 +12,7 @@ An Rsbuild plugin to use SVGR to transform SVG to React components via SVGR.
## Documentation
-See [Documentation](https://rsbuild.dev/plugins/list/plugin-svgr).
+See [Documentation](https://rsbuild.rs/plugins/list/plugin-svgr).
## License
diff --git a/packages/plugin-vue/README.md b/packages/plugin-vue/README.md
index eee6892527..402d8b2c5f 100644
--- a/packages/plugin-vue/README.md
+++ b/packages/plugin-vue/README.md
@@ -12,7 +12,7 @@ An Rsbuild plugin to provide support for Vue 3.
## Documentation
-See [Documentation](https://rsbuild.dev/plugins/list/plugin-vue).
+See [Documentation](https://rsbuild.rs/plugins/list/plugin-vue).
## License
diff --git a/packages/plugin-vue/package.json b/packages/plugin-vue/package.json
index 01c0d0c18e..9d15cde691 100644
--- a/packages/plugin-vue/package.json
+++ b/packages/plugin-vue/package.json
@@ -2,7 +2,7 @@
"name": "@rsbuild/plugin-vue",
"version": "1.0.7",
"description": "Vue 3 plugin of Rsbuild",
- "homepage": "https://rsbuild.dev",
+ "homepage": "https://rsbuild.rs",
"repository": {
"type": "git",
"url": "https://github.com/web-infra-dev/rsbuild",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c887eb11fc..3845a779e9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1183,8 +1183,8 @@ importers:
specifier: 2.0.0-beta.6
version: 2.0.0-beta.6(rspress@2.0.0-beta.6(@types/react@19.1.5)(acorn@8.14.0)(webpack@5.99.9))
'@rstack-dev/doc-ui':
- specifier: 1.10.4
- version: 1.10.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
+ specifier: 1.10.5
+ version: 1.10.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
'@shikijs/transformers':
specifier: ^3.4.2
version: 3.4.2
@@ -3015,8 +3015,8 @@ packages:
resolution: {integrity: sha512-JaIbF2Ohuucx8HirpqvkrF8ap17GobUr02GejowdJ3zK0tR2EkcgjAy6kjBAn4P4gr6cHhbqyFxqRTImVad2rg==}
engines: {node: '>=18.0.0'}
- '@rstack-dev/doc-ui@1.10.4':
- resolution: {integrity: sha512-NJmJJFKE/nJDUFx/4sLsfGLzv+QGDlV5foUNYy4GshsCmefWhMYV/1GT/TfqHjIkKyXo0x5fPNVypMUiHpARPg==}
+ '@rstack-dev/doc-ui@1.10.5':
+ resolution: {integrity: sha512-bZZcO1UMfYnNsmiJvM2U/DgD5zw0Mo91mYrmBlqI85i8ArtfoPGHoiZ2vFVIn6eDWVG77B0J8VxMM5ecSEfPNg==}
'@selderee/plugin-htmlparser2@0.11.0':
resolution: {integrity: sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==}
@@ -9327,7 +9327,7 @@ snapshots:
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
- '@rstack-dev/doc-ui@1.10.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
+ '@rstack-dev/doc-ui@1.10.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0)':
dependencies:
framer-motion: 12.11.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
transitivePeerDependencies:
diff --git a/scripts/test-helper/README.md b/scripts/test-helper/README.md
index 6d6578d966..3710815710 100644
--- a/scripts/test-helper/README.md
+++ b/scripts/test-helper/README.md
@@ -1,5 +1,5 @@
-
+
# Rsbuild
@@ -8,7 +8,7 @@ The Rspack-based build tool. It's fast, out-of-the-box and extensible.
## Documentation
-https://rsbuild.dev/
+https://rsbuild.rs/
## Contributing
diff --git a/website/README.md b/website/README.md
index b46aa210a5..b69e3fdfae 100644
--- a/website/README.md
+++ b/website/README.md
@@ -1,6 +1,6 @@
# Rsbuild website
-This website is built with [Rspress](https://github.com/web-infra-dev/rspress), the document content can be written using markdown or mdx syntax. You can refer to the [Rspress Website](https://rspress.dev/) for detailed usage.
+This website is built with [Rspress](https://github.com/web-infra-dev/rspress), the document content can be written using markdown or mdx syntax. You can refer to the [Rspress Website](https://rspress.rs/) for detailed usage.
## Contributing
@@ -14,4 +14,4 @@ The same as Rspack: [Writing style guide](https://github.com/web-infra-dev/rspac
For images you use in the document, it's better to upload them to the [rspack-contrib/rstack-design-resources](https://github.com/rspack-contrib/rstack-design-resources) repository, so the size of the current repository doesn't get too big.
-After you upload the images there, they will be automatically deployed under the .
+After you upload the images there, they will be automatically deployed under the .
diff --git a/website/docs/en/_meta.json b/website/docs/en/_meta.json
index 341a232c57..160054fbee 100644
--- a/website/docs/en/_meta.json
+++ b/website/docs/en/_meta.json
@@ -33,7 +33,7 @@
},
{
"text": "Rsbuild 0.x Doc",
- "link": "http://v0.rsbuild.dev/"
+ "link": "http://v0.rsbuild.rs/"
}
]
}
diff --git a/website/docs/en/api/javascript-api/core.mdx b/website/docs/en/api/javascript-api/core.mdx
index c65435f48b..293652c1d2 100644
--- a/website/docs/en/api/javascript-api/core.mdx
+++ b/website/docs/en/api/javascript-api/core.mdx
@@ -497,7 +497,7 @@ console.log(rspack.BannerPlugin);
:::tip
-- Refer to [Rspack plugins](https://rspack.dev/plugins/) and [Rspack JavaScript API](https://rspack.dev/api/javascript-api/) to learn more about the available Rspack APIs.
+- Refer to [Rspack plugins](https://rspack.rs/plugins/) and [Rspack JavaScript API](https://rspack.rs/api/javascript-api/) to learn more about the available Rspack APIs.
- It's not recommended to manually install the `@rspack/core` package, as it may conflict with the version that Rsbuild depends on.
:::
diff --git a/website/docs/en/api/javascript-api/instance.mdx b/website/docs/en/api/javascript-api/instance.mdx
index 814d1a5e00..dee2c56f4f 100644
--- a/website/docs/en/api/javascript-api/instance.mdx
+++ b/website/docs/en/api/javascript-api/instance.mdx
@@ -190,7 +190,7 @@ type BuildOptions = {
function Build(options?: BuildOptions): Promise<{
/**
- * Rspack's [stats](https://rspack.dev/api/javascript-api/stats) object.
+ * Rspack's [stats](https://rspack.rs/api/javascript-api/stats) object.
*/
stats?: Rspack.Stats | Rspack.MultiStats;
/**
@@ -263,7 +263,7 @@ await buildResult.close();
### Stats object
-In non-watch mode, the `rsbuild.build()` returns an Rspack [stats](https://rspack.dev/api/javascript-api/stats) object.
+In non-watch mode, the `rsbuild.build()` returns an Rspack [stats](https://rspack.rs/api/javascript-api/stats) object.
For example, use the `stats.toJson()` method to get all assets information:
@@ -509,7 +509,7 @@ await server.close();
## rsbuild.createCompiler
-Create an Rspack [Compiler](https://rspack.dev/api/javascript-api/compiler) instance. If there are multiple [environments](/config/environments) for this build, the return value is [MultiCompiler](https://rspack.dev/api/javascript-api/compiler#multicompiler).
+Create an Rspack [Compiler](https://rspack.rs/api/javascript-api/compiler) instance. If there are multiple [environments](/config/environments) for this build, the return value is [MultiCompiler](https://rspack.rs/api/javascript-api/compiler#multicompiler).
- **Type:**
diff --git a/website/docs/en/community/index.mdx b/website/docs/en/community/index.mdx
index e640008028..2d6621c0a0 100644
--- a/website/docs/en/community/index.mdx
+++ b/website/docs/en/community/index.mdx
@@ -10,7 +10,7 @@ For more details, see [Releases](/community/releases/index).
The development of Rsbuild is driven by ByteDance's Rspack team and community contributors.
-For information about the team members, please refer to [Rspack - Core team](https://rspack.dev/misc/team/core-team).
+For information about the team members, please refer to [Rspack - Core team](https://rspack.rs/misc/team/core-team).
## Communication
@@ -19,7 +19,7 @@ You can communicate with the developers of Rsbuild through the following channel
- [GitHub Discussions](https://github.com/web-infra-dev/rsbuild/discussions)
- [Discord](https://discord.com/invite/XsaKEEk4mW)
- [Twitter](https://twitter.com/rspack_dev)
-- [Bluesky](https://bsky.app/profile/rspack.dev)
+- [Bluesky](https://bsky.app/profile/rspack.rs)
## Resources
@@ -33,7 +33,7 @@ Please refer to the [Rsbuild Contribution Guide](https://github.com/web-infra-de
## Blogs
-Please visit [Rspack - Blog](https://rspack.dev/blog/index) to read our latest articles and announcements.
+Please visit [Rspack - Blog](https://rspack.rs/blog/index) to read our latest articles and announcements.
## Examples
diff --git a/website/docs/en/community/releases/v0-1.mdx b/website/docs/en/community/releases/v0-1.mdx
index fcd6a70be6..6b40ae10a1 100644
--- a/website/docs/en/community/releases/v0-1.mdx
+++ b/website/docs/en/community/releases/v0-1.mdx
@@ -6,7 +6,7 @@ _November 22, 2023_
# Announcing Rsbuild 0.1
-
+
We are pleased to announce **the release of** **[Rsbuild](https://github.com/web-infra-dev/rsbuild)** **0.1!**
@@ -44,6 +44,6 @@ Currently, Rsbuild is still evolving rapidly and plans to introduce many more po
For example, we are developing **Rsdoctor**, a robust build analysis tool that can be used with all Rspack and webpack projects. It will provide a visual user interface to help developers analyze build times, duplicate dependencies, code transformation processes, and more, making it easier to locate and resolve build issues.
-
+
We will be releasing the first working version of Rsdoctor soon. Thereafter, Rsbuild will iterate in sync with Rspack, with plans to release version 1.0 in the first half of 2024.
diff --git a/website/docs/en/community/releases/v0-2.mdx b/website/docs/en/community/releases/v0-2.mdx
index 2d57cf91d0..dcd1cb6fc1 100644
--- a/website/docs/en/community/releases/v0-2.mdx
+++ b/website/docs/en/community/releases/v0-2.mdx
@@ -6,7 +6,7 @@ _December 11, 2023_
# Announcing Rsbuild 0.2
-
+
The Rsbuild 0.2 contains some incompatible API changes. Please refer to the current documentation for upgrading.
diff --git a/website/docs/en/community/releases/v0-3.mdx b/website/docs/en/community/releases/v0-3.mdx
index 4134a691cd..c154b35828 100644
--- a/website/docs/en/community/releases/v0-3.mdx
+++ b/website/docs/en/community/releases/v0-3.mdx
@@ -6,18 +6,18 @@ _January 10, 2024_
# Announcing Rsbuild 0.3
-
+
Rsbuild 0.3 version has upgraded Rspack to 0.5 and now supports Module Federation. In addition, it includes some incompatible API changes. Please refer to the current documentation for upgrading.
## Rspack 0.5
-Bump Rspack to v0.5.0, see: [Rspack 0.5 Release Announcement](https://rspack.dev/blog/announcing-0-5)
+Bump Rspack to v0.5.0, see: [Rspack 0.5 Release Announcement](https://rspack.rs/blog/announcing-0-5)
Notable changes:
-- [Module Federation added to Rspack](https://rspack.dev/blog/module-federation-added-to-rspack)
-- [Remove deprecated builtins options](https://rspack.dev/blog/announcing-0-5#make-swchelpers-and-react-refresh-as-peerdependencies)
+- [Module Federation added to Rspack](https://rspack.rs/blog/module-federation-added-to-rspack)
+- [Remove deprecated builtins options](https://rspack.rs/blog/announcing-0-5#make-swchelpers-and-react-refresh-as-peerdependencies)
## TOML / YAML plugin
diff --git a/website/docs/en/community/releases/v0-4.mdx b/website/docs/en/community/releases/v0-4.mdx
index 39c35124de..9d79ddb160 100644
--- a/website/docs/en/community/releases/v0-4.mdx
+++ b/website/docs/en/community/releases/v0-4.mdx
@@ -6,7 +6,7 @@ _February 06, 2024_
# Announcing Rsbuild 0.4
-
+
Rsbuild 0.4 provides built-in support for module federation. It also contains some incompatible API updates. Please refer to the current document for upgrading.
diff --git a/website/docs/en/community/releases/v0-5.mdx b/website/docs/en/community/releases/v0-5.mdx
index 65f032461e..c22d8bb022 100644
--- a/website/docs/en/community/releases/v0-5.mdx
+++ b/website/docs/en/community/releases/v0-5.mdx
@@ -6,7 +6,7 @@ _March 19, 2024_
# Announcing Rsbuild 0.5
-
+
Rsbuild 0.5 is an important milestone. As of this release, most of the Rsbuild API has reached a stable state and we expect to release Rsbuild 1.0 in Q3 2024.
@@ -33,7 +33,7 @@ export default {
};
```
-In a real large-scale web application, we have integrated the Rsbuild Lightning CSS plugin and used [Rsdoctor](https://rsdoctor.dev/) to analyze the changes in build time:
+In a real large-scale web application, we have integrated the Rsbuild Lightning CSS plugin and used [Rsdoctor](https://rsdoctor.rs/) to analyze the changes in build time:
- CSS compilation time was reduced from 8.4s to 0.12s, a 70x improvement.
- The overall build time was reduced from 33.1s to 25.4s, a 30% increase.
diff --git a/website/docs/en/community/releases/v0-6.mdx b/website/docs/en/community/releases/v0-6.mdx
index cddc531b18..5c8dd3e4e2 100644
--- a/website/docs/en/community/releases/v0-6.mdx
+++ b/website/docs/en/community/releases/v0-6.mdx
@@ -6,7 +6,7 @@ _April 10, 2024_
# Announcing Rsbuild 0.6
-
+
Rsbuild 0.6 has been released along with Rspack 0.6!
@@ -22,13 +22,13 @@ Notable changes:
Rsbuild has upgraded the dependent Rspack to version 0.6, and adapted the breaking changes of CSS Modules contained in Rspack 0.6.
-In the new version, Rspack has enabled the new tree shaking algorithm by default, resulting in a significant improvement in bundle size and artifact stability. Please refer to the [Rspack 0.6 release announcement](https://rspack.dev/blog/announcing-0-6) to learn more.
+In the new version, Rspack has enabled the new tree shaking algorithm by default, resulting in a significant improvement in bundle size and artifact stability. Please refer to the [Rspack 0.6 release announcement](https://rspack.rs/blog/announcing-0-6) to learn more.
## Error overlay enabled by default
Starting from Rsbuild 0.6, the default value of [dev.client.overlay](/config/dev/client) has been adjusted to `true`. This means that when a compilation error occurs, Rsbuild will pop up the error overlay by default to display the error information:
-
+
If you do not need this feature, you can set `dev.client.overlay` to `false` to disable it.
diff --git a/website/docs/en/community/releases/v0-7.mdx b/website/docs/en/community/releases/v0-7.mdx
index da94ee3a6c..e2318eede6 100644
--- a/website/docs/en/community/releases/v0-7.mdx
+++ b/website/docs/en/community/releases/v0-7.mdx
@@ -6,7 +6,7 @@ _May 28, 2024_
# Announcing Rsbuild 0.7
-
+
Rsbuild 0.7 has been released with Rspack 0.7!
@@ -27,7 +27,7 @@ Rsbuild now supports Storybook!
[storybook-builder-rsbuild](https://github.com/rspack-contrib/storybook-rsbuild) is a Storybook builder based on Storybook v8 and Rsbuild that allows you to quickly build your components and stories.
-
+
- For projects using Rsbuild, you can now quickly integrate Storybook and reuse your existing Rsbuild config.
- For projects using the Storybook webpack builder, you can now upgrade to Rsbuild and **get ~5x faster build performance**.
@@ -44,7 +44,7 @@ const config: StorybookConfig = {
export default config;
```
-
+
> For more usage, please refer to [storybook-rsbuild repository](https://github.com/rspack-contrib/storybook-rsbuild).
@@ -54,7 +54,7 @@ In Rsbuild 0.7, **Sass compilation is 3~10 times faster**. The performance impro
Comparison of build times for Rsbuild 0.6 and 0.7 when compiling Bootstrap's Sass code:
-
+
This improvement is due to Rsbuild's default use of [sass-embedded](https://npmjs.com/package/sass-embedded), a JavaScript wrapper around the native Dart Sass executable that provides a consistent API and superior performance.
@@ -62,7 +62,7 @@ Rsbuild has also enabled the latest sass-loader's [modern-compiler](https://gith
## Better CSS supports
-Rsbuild now uses [CssExtractRspackPlugin](https://rspack.dev/plugins/rspack/css-extract-rspack-plugin) to extract CSS into separate files, rather than using the [experimental.css](https://rspack.dev/config/experiments#experimentscss) config to do so.
+Rsbuild now uses [CssExtractRspackPlugin](https://rspack.rs/plugins/rspack/css-extract-rspack-plugin) to extract CSS into separate files, rather than using the [experimental.css](https://rspack.rs/config/experiments#experimentscss) config to do so.
This allows Rsbuild to support more CSS features, including:
@@ -137,7 +137,7 @@ Now when you open the `src/index.ts` file, you can see that the `styles` object
Now, all packages of Rsbuild provide exports in both ES modules and CommonJS formats, and ["type"="module"](https://nodejs.org/api/packages.html#type) has been declared in the package.json.
-
+
This allows you to use `import` or `require` to use the JavaScript API of Rsbuild:
@@ -157,7 +157,7 @@ ESM/CJS interop is a tricky issue, so we will provide both formats for a long ti
Rsbuild has upgraded the dependent Rspack to version 0.7 and adapted to the breaking changes included in it. Typically, these breaking changes will not affect you.
-In the new version, Rspack supports lazy compilation, which can significantly improve the dev startup time for large projects. Please refer to [Announcing Rspack 0.7](https://rspack.dev/blog/announcing-0-7) to learn more.
+In the new version, Rspack supports lazy compilation, which can significantly improve the dev startup time for large projects. Please refer to [Announcing Rspack 0.7](https://rspack.rs/blog/announcing-0-7) to learn more.
In Rsbuild, you can use [dev.lazyCompilation](/config/dev/lazy-compilation) to enable lazy compilation.
diff --git a/website/docs/en/community/releases/v1-0.mdx b/website/docs/en/community/releases/v1-0.mdx
index f6e721a0f8..91ca441e29 100644
--- a/website/docs/en/community/releases/v1-0.mdx
+++ b/website/docs/en/community/releases/v1-0.mdx
@@ -6,7 +6,7 @@ _September 10, 2024_
# Announcing Rsbuild 1.0
-
+
We are pleased to announce the release of Rsbuild 1.0!
@@ -30,7 +30,7 @@ For the webpack ecosystem, we discovered a sad fact: **the webpack ecosystem lac
During the development of Rspack, we became aware of the above problems and decided to create a modern build tool based on Rspack called **Rsbuild**.
-
+
Rsbuild is built on top of Rspack. We designed Rsbuild with an easy-to-use, TypeScript-friendly API and a set of carefully designed configurations to fully leverage the Rspack's build performance while reducing configuration complexity and high up-front costs.
@@ -58,7 +58,7 @@ This is because Rspack CLI needs to maintain compatibility with the [webpack-cli
## Who is using
-In the [Rspack 1.0 Announcement](https://rspack.dev/blog/announcing-1-0), we introduced that Rspack is growing rapidly, with almost half of Rspack users using Rsbuild and giving us lots of positive feedback.
+In the [Rspack 1.0 Announcement](https://rspack.rs/blog/announcing-1-0), we introduced that Rspack is growing rapidly, with almost half of Rspack users using Rsbuild and giving us lots of positive feedback.
At ByteDance, we use Rsbuild as the cornerstone of our internal web frameworks to support thousands of web projects. These projects cover diverse use cases, including desktop web applications, mobile web applications, cross-platform web applications, documentation sites, and more.
@@ -74,7 +74,7 @@ Compared to webpack or Rspack, the Rsbuild plugin API is more straightforward an
For example, let's implement a plugin that outputs a file to the dist directory. The implementation comparison between Rspack and Rsbuild is as follows:
-
+
As shown, the API style of the Rsbuild plugin is similar to esbuild, it can be defined by a function. The plugin hooks have been simplified to avoid verbose APIs, making plugin development more intuitive.
@@ -90,8 +90,8 @@ As shown, the API style of the Rsbuild plugin is similar to esbuild, it can be d
Rsbuild 1.0 provides several advanced features for the development of enterprise applications and higher-level tools, such as the [multi-environment build API](/guide/advanced/environments), [SSR API](/guide/advanced/ssr), [plugin API](/plugins/dev/), [Module Federation support](/guide/advanced/module-federation), and [library build (Rslib)](https://github.com/web-infra-dev/rslib). We plan to continue to enhance these features to better support the development of the Rsbuild ecosystem.
-In the next 12 to 18 months, Rsbuild will evolve together with Rspack, adopting Rspack's new features as soon as they become available. These features include persistent caching, faster HMR, and TypeScript-based optimizations. For more details, see [Rspack - What's next](https://rspack.dev/blog/announcing-1-0#whats-next).
+In the next 12 to 18 months, Rsbuild will evolve together with Rspack, adopting Rspack's new features as soon as they become available. These features include persistent caching, faster HMR, and TypeScript-based optimizations. For more details, see [Rspack - What's next](https://rspack.rs/blog/announcing-1-0#whats-next).
Finally, a big thank you to all the developers who have contributed to Rsbuild ❤️:
-
+
diff --git a/website/docs/en/config/dev/asset-prefix.mdx b/website/docs/en/config/dev/asset-prefix.mdx
index a1acfa55f5..2bc987b82c 100644
--- a/website/docs/en/config/dev/asset-prefix.mdx
+++ b/website/docs/en/config/dev/asset-prefix.mdx
@@ -114,7 +114,7 @@ It's not recommended to set assetPrefix as a relative path, such as `'./assets/'
## Compare with `publicPath`
-The functionality of `dev.assetPrefix` is basically the same as the [output.publicPath](https://rspack.dev/config/output#outputpublicpath) config in Rspack.
+The functionality of `dev.assetPrefix` is basically the same as the [output.publicPath](https://rspack.rs/config/output#outputpublicpath) config in Rspack.
The differences from the native configuration are as follows:
@@ -127,4 +127,4 @@ The differences from the native configuration are as follows:
Use the `__webpack_public_path__` variable provided by Rspack to dynamically set the URL prefix of static assets in JavaScript code.
-See [Rspack - Dynamically set publicPath](https://rspack.dev/config/output#dynamically-set-publicpath).
+See [Rspack - Dynamically set publicPath](https://rspack.rs/config/output#dynamically-set-publicpath).
diff --git a/website/docs/en/config/dev/client.mdx b/website/docs/en/config/dev/client.mdx
index 234405e1ea..ccf420fb8f 100644
--- a/website/docs/en/config/dev/client.mdx
+++ b/website/docs/en/config/dev/client.mdx
@@ -89,7 +89,7 @@ The `dev.client.overlay` option allows you to choose whether or not to enable th
By default, Rsbuild will display an error overlay in the browser when a compilation error occurs, providing error messages and stacks:
-
+
To disable the error overlay, set it to `false`:
diff --git a/website/docs/en/config/dev/lazy-compilation.mdx b/website/docs/en/config/dev/lazy-compilation.mdx
index 70ab27d386..3d778c59a2 100644
--- a/website/docs/en/config/dev/lazy-compilation.mdx
+++ b/website/docs/en/config/dev/lazy-compilation.mdx
@@ -32,7 +32,7 @@ type LazyCompilationOptions =
- **Default:** `false`
- **Version:** `>= 1.3.0`
-Enable lazy compilation (compilation on demand), implemented based on Rspack's [lazy compilation](https://rspack.dev/guide/features/lazy-compilation) feature.
+Enable lazy compilation (compilation on demand), implemented based on Rspack's [lazy compilation](https://rspack.rs/guide/features/lazy-compilation) feature.
## Introduction
@@ -108,7 +108,7 @@ When the `imports` option is enabled, all async modules will only be compiled wh
### Server URL
-Use [lazyCompilation.serverUrl](https://rspack.dev/config/experiments#lazycompilationserverurl) to tell the client the server URL that needs to be requested.
+Use [lazyCompilation.serverUrl](https://rspack.rs/config/experiments#lazycompilationserverurl) to tell the client the server URL that needs to be requested.
```ts title="rsbuild.config.ts"
export default {
diff --git a/website/docs/en/config/dev/watch-files.mdx b/website/docs/en/config/dev/watch-files.mdx
index 07ea931f02..808cd715d4 100644
--- a/website/docs/en/config/dev/watch-files.mdx
+++ b/website/docs/en/config/dev/watch-files.mdx
@@ -132,6 +132,6 @@ export default {
`watchFiles` is not applicable for watching build dependency files. When an Rsbuild build starts, the underlying Rspack will automatically watches all build dependencies. Any changes to these files will trigger a new build.
-If you want to prevent some files from triggering a rebuild when they change, you can use Rspack's [watchOptions.ignored](https://rspack.dev/config/watch#watchoptionsignored) configuration item.
+If you want to prevent some files from triggering a rebuild when they change, you can use Rspack's [watchOptions.ignored](https://rspack.rs/config/watch#watchoptionsignored) configuration item.
> See [HMR - File Watching](/guide/advanced/hmr#file-watching) for more details.
diff --git a/website/docs/en/config/mode.mdx b/website/docs/en/config/mode.mdx
index 7a42001a9e..4f97b22cbd 100644
--- a/website/docs/en/config/mode.mdx
+++ b/website/docs/en/config/mode.mdx
@@ -5,7 +5,7 @@
Specify the build mode for Rsbuild, as each mode has different default behavior and optimizations. For example, the `production` mode will minify code by default.
-The value of Rsbuild `mode` is also be passed to the [mode](https://rspack.dev/config/mode) configuration of Rspack.
+The value of Rsbuild `mode` is also be passed to the [mode](https://rspack.rs/config/mode) configuration of Rspack.
:::tip
The value of `mode` does not affect the loading results of the `.env` file, as the `.env` file is resolved before the Rsbuild configuration file.
@@ -47,7 +47,7 @@ When using Rsbuild's JavaScript API:
If the value of `mode` is `development`:
-- Enable HMR and register the [HotModuleReplacementPlugin](https://rspack.dev/plugins/webpack/hot-module-replacement-plugin).
+- Enable HMR and register the [HotModuleReplacementPlugin](https://rspack.rs/plugins/webpack/hot-module-replacement-plugin).
- Generate JavaScript source maps, but do not generate CSS source maps. See [output.sourceMap](/config/output/source-map) for details.
- The `process.env.NODE_ENV` in the source code will be replaced with `'development'`.
- The `import.meta.env.MODE` in the source code will be replaced with `'development'`.
@@ -58,8 +58,8 @@ If the value of `mode` is `development`:
If the value of `mode` is `production`:
-- Enable JavaScript code minification and register the [SwcJsMinimizerRspackPlugin](https://rspack.dev/plugins/rspack/swc-js-minimizer-rspack-plugin).
-- Enable CSS code minification and register the [LightningCssMinimizerRspackPlugin](https://rspack.dev/plugins/rspack/lightning-css-minimizer-rspack-plugin).
+- Enable JavaScript code minification and register the [SwcJsMinimizerRspackPlugin](https://rspack.rs/plugins/rspack/swc-js-minimizer-rspack-plugin).
+- Enable CSS code minification and register the [LightningCssMinimizerRspackPlugin](https://rspack.rs/plugins/rspack/lightning-css-minimizer-rspack-plugin).
- Generated JavaScript and CSS filenames will have hash suffixes, see [output.filenameHash](/config/output/filename-hash).
- Generated CSS Modules classnames will be shorter, see [cssModules.localIdentName](/config/output/css-modules#cssmoduleslocalidentname).
- Do not generate JavaScript and CSS source maps, see [output.sourceMap](/config/output/source-map).
diff --git a/website/docs/en/config/module-federation/options.mdx b/website/docs/en/config/module-federation/options.mdx
index b64af901de..638a0811f2 100644
--- a/website/docs/en/config/module-federation/options.mdx
+++ b/website/docs/en/config/module-federation/options.mdx
@@ -1,6 +1,6 @@
# moduleFederation.options
-- **Type:** [Rspack.ModuleFederationPluginOptions](https://rspack.dev/plugins/webpack/module-federation-plugin#options)
+- **Type:** [Rspack.ModuleFederationPluginOptions](https://rspack.rs/plugins/webpack/module-federation-plugin#options)
- **Default:** `undefined`
Used to configure the Rspack's Module Federation plugin (Module Federation v1.5).
@@ -15,9 +15,9 @@ When using Module Federation, it is recommended that you use the `moduleFederati
When you set the `moduleFederation.options` option, Rsbuild will take the following actions:
-- Automatically register the [ModuleFederationPlugin](https://rspack.dev/plugins/webpack/module-federation-plugin) plugin, and pass the value of `options` to the plugin.
+- Automatically register the [ModuleFederationPlugin](https://rspack.rs/plugins/webpack/module-federation-plugin) plugin, and pass the value of `options` to the plugin.
- Set the default value of the provider's [dev.assetPrefix](/config/dev/asset-prefix) configuration to `true`. This will ensure that the static asset URL is correct for remote modules.
-- Set the default value of Rspack's [output.uniqueName](https://rspack.dev/config/output#outputuniquename) configuration to `moduleFederation.options.name`, this allows HMR to work as expected.
+- Set the default value of Rspack's [output.uniqueName](https://rspack.rs/config/output#outputuniquename) configuration to `moduleFederation.options.name`, this allows HMR to work as expected.
- Turn off the `split-by-experience` rules in Rsbuild's [performance.chunkSplit](/config/performance/chunk-split) as it may conflict with shared modules, refer to [#3161](https://github.com/module-federation/module-federation-examples/issues/3161).
- Turn off the splitChunks rule of remote entry.
@@ -36,7 +36,7 @@ export default defineConfig({
});
```
-Please refer to the [ModuleFederationPlugin](https://rspack.dev/plugins/webpack/module-federation-plugin) document for all available options.
+Please refer to the [ModuleFederationPlugin](https://rspack.rs/plugins/webpack/module-federation-plugin) document for all available options.
## Example
diff --git a/website/docs/en/config/output/asset-prefix.mdx b/website/docs/en/config/output/asset-prefix.mdx
index b3bbcb5d3d..1ad04c1496 100644
--- a/website/docs/en/config/output/asset-prefix.mdx
+++ b/website/docs/en/config/output/asset-prefix.mdx
@@ -81,7 +81,7 @@ It's not recommended to set assetPrefix as a relative path, such as `'./assets/'
## Compare with `publicPath`
-The functionality of `output.assetPrefix` is basically the same as the [output.publicPath](https://rspack.dev/config/output#outputpublicpath) config in Rspack.
+The functionality of `output.assetPrefix` is basically the same as the [output.publicPath](https://rspack.rs/config/output#outputpublicpath) config in Rspack.
The differences from the native configuration are as follows:
@@ -94,4 +94,4 @@ The differences from the native configuration are as follows:
Use the `__webpack_public_path__` variable provided by Rspack to dynamically set the URL prefix of static assets in JavaScript code.
-See [Rspack - Dynamically set publicPath](https://rspack.dev/config/output#dynamically-set-publicpath).
+See [Rspack - Dynamically set publicPath](https://rspack.rs/config/output#dynamically-set-publicpath).
diff --git a/website/docs/en/config/output/copy.mdx b/website/docs/en/config/output/copy.mdx
index 1a27e60e9f..5664eb1046 100644
--- a/website/docs/en/config/output/copy.mdx
+++ b/website/docs/en/config/output/copy.mdx
@@ -3,9 +3,9 @@
- **Type:** `Rspack.CopyRspackPluginOptions | Rspack.CopyRspackPluginOptions['patterns']`
- **Default:** `undefined`
-Copies the specified file or directory to the dist directory, implemented based on [rspack.CopyRspackPlugin](https://rspack.dev/plugins/rspack/copy-rspack-plugin).
+Copies the specified file or directory to the dist directory, implemented based on [rspack.CopyRspackPlugin](https://rspack.rs/plugins/rspack/copy-rspack-plugin).
-> Please refer to the configuration options here: [rspack.CopyRspackPlugin](https://rspack.dev/plugins/rspack/copy-rspack-plugin).
+> Please refer to the configuration options here: [rspack.CopyRspackPlugin](https://rspack.rs/plugins/rspack/copy-rspack-plugin).
## Example
diff --git a/website/docs/en/config/output/externals.mdx b/website/docs/en/config/output/externals.mdx
index ac2c34ddde..6f4997c40c 100644
--- a/website/docs/en/config/output/externals.mdx
+++ b/website/docs/en/config/output/externals.mdx
@@ -15,7 +15,7 @@ type Externals =
At build time, prevent some `import` dependencies from being packed into bundles in your code, and instead fetch them externally at runtime.
-> For more information, please see: [Rspack Externals](https://rspack.dev/config/externals).
+> For more information, please see: [Rspack Externals](https://rspack.rs/config/externals).
## Example
diff --git a/website/docs/en/config/output/filename.mdx b/website/docs/en/config/output/filename.mdx
index 61ac0535d9..9065fc11d8 100644
--- a/website/docs/en/config/output/filename.mdx
+++ b/website/docs/en/config/output/filename.mdx
@@ -114,7 +114,7 @@ Common template strings include:
- `[contenthash:]` - hash value generated based on file content, with specified hash length.
- `[ext]` - file extension, including the dot.
-> For more template strings, refer to [Rspack - Template String](https://rspack.dev/config/output#template-string).
+> For more template strings, refer to [Rspack - Template String](https://rspack.rs/config/output#template-string).
:::tip
@@ -134,7 +134,7 @@ When you import a module via dynamic import, the module will be bundled into a s
const { add } = await import('./add.ts');
```
-To specify a fixed name for the async module, use the [magic comments](https://rspack.dev/api/runtime-api/module-methods#magic-comments) provided by Rspack, using `webpackChunkName ` to specify the module name:
+To specify a fixed name for the async module, use the [magic comments](https://rspack.rs/api/runtime-api/module-methods#magic-comments) provided by Rspack, using `webpackChunkName ` to specify the module name:
```js title="src/index.ts"
const { add } = await import(
diff --git a/website/docs/en/config/output/inline-scripts.mdx b/website/docs/en/config/output/inline-scripts.mdx
index 89617c6d46..f2f15de27a 100644
--- a/website/docs/en/config/output/inline-scripts.mdx
+++ b/website/docs/en/config/output/inline-scripts.mdx
@@ -123,7 +123,7 @@ export default {
When you use [dynamic import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) in JavaScript, Rspack will generate an async chunk. By default, `output.inlineScripts` will not inline async chunks into the HTML.
-To inline async chunks into the HTML, change Rspack's default behavior using the [tools.rspack](/config/tools/rspack) config by setting [module.parser.javascript.dynamicImportMode](https://rspack.dev/config/module#moduleparserjavascriptdynamicimportmode) to `'eager'`. In this case, Rspack will not generate separate JS files for dynamic imports.
+To inline async chunks into the HTML, change Rspack's default behavior using the [tools.rspack](/config/tools/rspack) config by setting [module.parser.javascript.dynamicImportMode](https://rspack.rs/config/module#moduleparserjavascriptdynamicimportmode) to `'eager'`. In this case, Rspack will not generate separate JS files for dynamic imports.
```js
export default {
diff --git a/website/docs/en/config/output/minify.mdx b/website/docs/en/config/output/minify.mdx
index 4dcc20f2a4..be16468ec8 100644
--- a/website/docs/en/config/output/minify.mdx
+++ b/website/docs/en/config/output/minify.mdx
@@ -83,7 +83,7 @@ export default {
- **Type:** `Rspack.SwcJsMinimizerRspackPluginOptions`
- **Default:** `{}`
-`output.minify.jsOptions` is used to configure SWC's minification options. For detailed configurations, please refer to [SwcJsMinimizerRspackPlugin](https://rspack.dev/plugins/rspack/swc-js-minimizer-rspack-plugin). The following configuration will override the default settings, disable the mangle feature.
+`output.minify.jsOptions` is used to configure SWC's minification options. For detailed configurations, please refer to [SwcJsMinimizerRspackPlugin](https://rspack.rs/plugins/rspack/swc-js-minimizer-rspack-plugin). The following configuration will override the default settings, disable the mangle feature.
For example, disable the mangle feature:
@@ -143,7 +143,7 @@ export default {
- **Type:** `Rspack.LightningcssMinimizerRspackPluginOptions`
- **Default:** inherit from [tools.lightningcssLoader](/config/tools/lightningcss-loader)
-`output.minify.cssOptions` is used to configure Lightning CSS's minification options. For detailed configuration options, please refer to [LightningCssMinimizerRspackPlugin Documentation](https://rspack.dev/plugins/rspack/lightning-css-minimizer-rspack-plugin).
+`output.minify.cssOptions` is used to configure Lightning CSS's minification options. For detailed configuration options, please refer to [LightningCssMinimizerRspackPlugin Documentation](https://rspack.rs/plugins/rspack/lightning-css-minimizer-rspack-plugin).
For example, disable error recovery:
diff --git a/website/docs/en/config/output/source-map.mdx b/website/docs/en/config/output/source-map.mdx
index d28bbefe46..a74f3ac1a0 100644
--- a/website/docs/en/config/output/source-map.mdx
+++ b/website/docs/en/config/output/source-map.mdx
@@ -63,7 +63,7 @@ export default {
## JS source map
-The source map for JS files is controlled by `sourceMap.js` and can be configured by passing in all the source map formats supported by Rspack's [devtool](https://rspack.dev/config/devtool) option. Setting it to `false` will disable the source map.
+The source map for JS files is controlled by `sourceMap.js` and can be configured by passing in all the source map formats supported by Rspack's [devtool](https://rspack.rs/config/devtool) option. Setting it to `false` will disable the source map.
For example, if you need to generate high-quality source maps in all environments, you can set it as follows:
diff --git a/website/docs/en/config/output/target.mdx b/website/docs/en/config/output/target.mdx
index ecf8c71d55..480bdd1ca8 100644
--- a/website/docs/en/config/output/target.mdx
+++ b/website/docs/en/config/output/target.mdx
@@ -65,7 +65,7 @@ Refers to the build target running in the Node.js environment, usually used in s
When `target` is set to `'node'`, Rsbuild will:
-- Set Rspack's [target](https://rspack.dev/config/target) to `'node'`.
+- Set Rspack's [target](https://rspack.rs/config/target) to `'node'`.
- No HTML files will be generated, and HTML-related logic will not be executed, since HTML is not required by the Node.js environment.
- The default code split strategy will be disabled, but dynamic import can still work.
- Disable the HMR.
@@ -97,7 +97,7 @@ Refers to the build target running in the [Web Worker](https://developer.mozilla
When `target` is set to `'web-worker'`, Rsbuild will:
-- Set Rspack's [target](https://rspack.dev/config/target) to `'webworker'`.
+- Set Rspack's [target](https://rspack.rs/config/target) to `'webworker'`.
- No HTML files will be generated, and HTML-related logic will not be executed, since HTML is not required by the Web Worker environment.
- CSS code will not be bundled or extracted, but the id information of CSS Modules will be included in the bundle (the default value of [output.emitCss](/config/output/emit-css) is `false`).
- The default code split strategy will be disabled, and **dynamic import can not work**, because the Web Worker only runs a single JavaScript file.
@@ -108,7 +108,7 @@ For more information, please refer to: [Using Web Workers](/guide/basic/web-work
## Other targets
-[Rspack](https://rspack.dev/config/target) supports other target types, such as `electron-main` and `electron-renderer`.
+[Rspack](https://rspack.rs/config/target) supports other target types, such as `electron-main` and `electron-renderer`.
Rsbuild currently does not support these targets. You can configure these targets using [tools.rspack](/config/tools/rspack).
diff --git a/website/docs/en/config/performance/build-cache.mdx b/website/docs/en/config/performance/build-cache.mdx
index 1e6d8c96ae..dc7d81f4de 100644
--- a/website/docs/en/config/performance/build-cache.mdx
+++ b/website/docs/en/config/performance/build-cache.mdx
@@ -21,7 +21,7 @@ When enabled, Rspack will store the build snapshots in the cache directory. In s
:::tip
-Rspack's persistent cache is [experimental](https://rspack.dev/config/experiments#experimentscache) and may change in the future.
+Rspack's persistent cache is [experimental](https://rspack.rs/config/experiments#experimentscache) and may change in the future.
:::
@@ -95,7 +95,7 @@ export default defineConfig({
`buildDependencies` is an arrays of additional code dependencies for the build. Rspack will use a hash of each of these items and all dependencies to invalidate the filesystem cache.
-Equivalent to Rspack's [cache.buildDependencies](https://rspack.dev/config/experiments#cachebuilddependencies) option.
+Equivalent to Rspack's [cache.buildDependencies](https://rspack.rs/config/experiments#cachebuilddependencies) option.
#### Default value
diff --git a/website/docs/en/config/performance/bundle-analyze.mdx b/website/docs/en/config/performance/bundle-analyze.mdx
index 738708f824..588fb4a02b 100644
--- a/website/docs/en/config/performance/bundle-analyze.mdx
+++ b/website/docs/en/config/performance/bundle-analyze.mdx
@@ -66,7 +66,7 @@ Webpack Bundle Analyzer saved report to /Project/my-project/dist/report-web.html
You can manually open the file in the browser and view the detail of the bundle size. When an area is larger, it indicates that its corresponding bundle size is larger.
-
+
## Override default configuration
diff --git a/website/docs/en/config/performance/chunk-split.mdx b/website/docs/en/config/performance/chunk-split.mdx
index 0cf65cf897..03712696f1 100644
--- a/website/docs/en/config/performance/chunk-split.mdx
+++ b/website/docs/en/config/performance/chunk-split.mdx
@@ -122,7 +122,7 @@ export default {
};
```
-This is an easier way than configuring Rspack's [splitChunks](https://rspack.dev/config/optimization#optimizationsplitchunks) directly.
+This is an easier way than configuring Rspack's [splitChunks](https://rspack.rs/config/optimization#optimizationsplitchunks) directly.
:::tip
Chunks split using the `forceSplitting` configuration will be inserted into the HTML file as resources requested for the initial screen using `