Skip to content

Commit

Permalink
docs: add parallel code splitting docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerFeng committed Jan 20, 2025
1 parent 92f6cff commit 71dd228
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/docs/en/config/experiments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,16 @@ Currently, incremental for the `make` and `emitAssets` stages is enabled by defa
This feature is experimental. You can check its relevant progress at [rspack#8106](https://github.com/web-infra-dev/rspack/issues/8106). You can also report bugs and any related feedback here.
:::

## experiments.parallelCodeSplitting

<ApiMeta addedVersion="1.2.0" />

- **Type:** `boolean`

- **Default:** false

Enabling this configuration will activate a new multi-threaded Code Splitting algorithm. If your project includes many dynamic imports, this can greatly decrease the time spent on the Code Splitting process. In the future, Rspack will have this enabled by default.

## experiments.rspackFuture

- **Type:** `object`
Expand Down
10 changes: 10 additions & 0 deletions website/docs/zh/config/experiments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,16 @@ module.exports = {
该特性属于实验性特性,可前往 [rspack#8106](https://github.com/web-infra-dev/rspack/issues/8106) 查看其相关进度,也可在此 issue 中反馈 bugs 以及任何与之相关的反馈信息。
:::

## experiments.parallelCodeSplitting

<ApiMeta addedVersion="1.2.0" />

- **类型:** `boolean`

- **默认值:** false

开启后会启用新的多线程 Code Splitting 算法,如果你的项目中包含较多的动态引用,开启后可以显著降低 Code Splitting 阶段耗时,在未来 Rspack 会默认开启。

## experiments.rspackFuture

- **类型:** `object`
Expand Down

0 comments on commit 71dd228

Please sign in to comment.