Skip to content

Commit c3f2a32

Browse files
authored
docs: fix outdated plugin order link (#6617)
1 parent f788124 commit c3f2a32

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

website/docs/en/config/plugins.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ export default defineConfig({
4242

4343
## Execution order
4444

45-
By default, plugins run in the order they appear in the `plugins` array, and built-in Rsbuild plugins run before user-registered plugins.
45+
By default, plugins run in the order they appear in the `plugins` array. Built-in Rsbuild plugins always execute before user-defined plugins.
4646

47-
If a plugin defines ordering fields such as `pre` or `post`, Rsbuild adjusts the execution order accordingly. See [Pre Plugins](/plugins/dev/core#pre-pluginss) for more details.
47+
If a plugin specifies ordering controls such as the `enforce` property, the final execution sequence will be adjusted accordingly. See the [`enforce` property](/plugins/dev/core#enforce-property) for details.
4848

4949
## Conditional registration
5050

website/docs/zh/config/plugins.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ export default defineConfig({
4242

4343
## 执行顺序
4444

45-
默认情况下,插件会按照 `plugins` 数组的顺序依次执行,Rsbuild 内置插件的执行时机早于用户注册的插件。
45+
默认情况下,插件会按照 `plugins` 数组中的顺序依次执行,Rsbuild 内置插件的执行时机早于用户注册的插件。
4646

47-
当插件内部使用了控制顺序的相关字段,比如 `pre``post` 时,执行顺序会基于它们进行调整,详见 [前置插件](/plugins/dev/core#前置插件)
47+
如果插件使用了控制执行顺序的字段,比如 `enforce` 属性时,则最终的执行顺序会根据这些字段进行调整,详见 [`enforce` 属性](/plugins/dev/core#enforce-属性)
4848

4949
## 条件注册
5050

0 commit comments

Comments
 (0)