Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions website/docs/en/guide/upgrade/v1-to-v2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ export default {
};
```

### Remove `performance.removeMomentLocale`

The `performance.removeMomentLocale` option has been removed.

This option existed to drop Moment.js locale data from the bundle, but Rspack v2 does not include Moment locales by default, so the option is no longer necessary.

> For background, see [web-infra-dev/rsbuild#6991](https://github.com/web-infra-dev/rsbuild/pull/6991).

### Remove `performance.profile`

The `performance.profile` option has been removed. If you relied on it to emit a stats JSON file, use [stats.toJson()](/api/javascript-api/instance#stats-object) in a custom plugin instead:
Expand Down
8 changes: 8 additions & 0 deletions website/docs/zh/guide/upgrade/v1-to-v2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ export default {
};
```

### 移除 `performance.removeMomentLocale`

`performance.removeMomentLocale` 选项已被移除。

该选项原本用于从产物中移除 Moment.js 的语言包。但在 Rspack v2 中,Moment 的 locales 默认不会被打包,因此该选项已不再需要。

> 背景信息可参考 [web-infra-dev/rsbuild#6991](https://github.com/web-infra-dev/rsbuild/pull/6991)。

### 移除 `performance.profile`

`performance.profile` 选项已被移除。如果你依赖它来输出 stats JSON 文件,可以在自定义插件中调用 [stats.toJson()](/api/javascript-api/instance#stats-object) 代替:
Expand Down
Loading