Skip to content

Commit c2189ee

Browse files
committed
chore: update
1 parent 380f71d commit c2189ee

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

website/docs/en/config/rsbuild.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Rsbuild 配置
1+
# Rsbuild Configuration

website/docs/en/guide/basic/_meta.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[
22
"cli",
33
"configure-rslib",
4-
"configure-rsbuild-rspack",
54
"typescript-usage",
65
"output-files",
76
"bundle-mode",

website/docs/en/guide/basic/configure-rsbuild-rspack.mdx

Lines changed: 0 additions & 1 deletion
This file was deleted.

website/docs/en/guide/basic/configure-rslib.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,20 @@ export default defineConfig({
172172
});
173173
```
174174

175+
## Configure Rsbuild
176+
177+
In Rslib project, you can configure Rsbuild related configurations in both `lib` configuration object and shared configuration section.
178+
179+
Common-used Rsbuild configurations in library development are listed at [Rsbuild Configuration](/config/rsbuild).
180+
181+
You can also refer to the [Rsbuild Configuration](https://rsbuild.dev/config/index#config-overview) for checking the complete configuration items.
182+
183+
## Configure Rspack
184+
185+
Rslib is built on top of Rsbuild and Rsbuild supports directly modifying the Rspack configuration object and also supports modifying the built-in Rspack configuration of Rsbuild through `rspack-chain`. This means you can configure Rspack related configurations in an Rslib project as well.
186+
187+
For more details, refer to [Configure Rspack](https://rsbuild.dev/guide/basic/configure-rspack).
188+
175189
## Configuration Debug
176190

177191
You can enable Rslib's debug mode by adding the `DEBUG=rsbuild` environment variable when executing a build. It will display the final Rsbuild/Rspack configuration after processing by Rslib.

0 commit comments

Comments
 (0)