Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Jan 15, 2025
1 parent eed9e60 commit f4ad788
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions website/docs/en/plugins/list/plugin-react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ pluginReact({
### swcReactOptions.refresh

- **Type:** `boolean`
- **Default:** based on [fastRefresh](/config/dev/fast-refresh)
- **Default:** based on [fastRefresh](#fastrefresh) and [dev.hmr](/config/dev/hmr)

Whether to enable React [Fast Refresh](https://www.npmjs.com/package/react-refresh).
Whether to enable [React Fast Refresh](https://www.npmjs.com/package/react-refresh).

Most of the time, you should use the plugin's [fastRefresh](/config/dev/fast-refresh) option to enable or disable Fast Refresh.
Most of the time, you should use the plugin's [fastRefresh](#fastrefresh) option to enable or disable Fast Refresh.

### splitChunks

Expand Down Expand Up @@ -234,7 +234,7 @@ pluginReact({
- **Type:** `boolean`
- **Default:** `true`

Whether to enable React [Fast Refresh](https://www.npmjs.com/package/react-refresh) in development mode.
Whether to enable [React Fast Refresh](https://www.npmjs.com/package/react-refresh) in development mode.

If `fastRefresh` is set to `true`, `@rsbuild/plugin-react` will automatically register the [@rspack/plugin-react-refresh](https://www.npmjs.com/package/@rspack/plugin-react-refresh) plugin.

Expand Down
8 changes: 4 additions & 4 deletions website/docs/zh/plugins/list/plugin-react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ pluginReact({
### swcReactOptions.refresh

- **类型:** `boolean`
- **默认值:** 基于 [fastRefresh](/config/dev/fast-refresh)
- **默认值:** 基于 [fastRefresh](#fastrefresh)[dev.hmr](/config/dev/hmr)

是否启用 React [Fast Refresh](https://www.npmjs.com/package/react-refresh)
是否启用 [React Fast Refresh](https://www.npmjs.com/package/react-refresh)

大多数情况下,你应该使用插件的 [fastRefresh](/config/dev/fast-refresh) 选项来启用或禁用 Fast Refresh。
大多数情况下,你应该使用插件的 [fastRefresh](#fastrefresh) 选项来启用或禁用 Fast Refresh。

### splitChunks

Expand Down Expand Up @@ -236,7 +236,7 @@ pluginReact({
- **类型:** `boolean`
- **默认值:** `true`

是否在开发模式下启用 React [Fast Refresh](https://www.npmjs.com/package/react-refresh)
是否在开发模式下启用 [React Fast Refresh](https://www.npmjs.com/package/react-refresh)

`fastRefresh` 设置为 `true` 时,`@rsbuild/plugin-react` 会自动注册 [@rspack/plugin-react-refresh](https://www.npmjs.com/package/@rspack/plugin-react-refresh) 插件。

Expand Down

0 comments on commit f4ad788

Please sign in to comment.