Skip to content

Commit 0610307

Browse files
authored
docs: update lazyCompilation docs for rspack (#7290)
1 parent 6a42b03 commit 0610307

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

packages/document/main-doc/docs/en/configure/app/experiments/lazy-compilation.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ Used to enable the lazy compilation (i.e. compile on demand). When this config i
2525

2626
Lazy compilation only takes effect in the development.
2727

28+
## Rspack
29+
30+
import RsbuildLink from '@site/src/components/RsbuildLink';
31+
32+
:::info
33+
The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to <RsbuildLink configName="dev.lazyCompilation"/>。
34+
In Rspack build mode,
35+
:::
36+
37+
## Webapck
38+
2839
### Lazy Compilation for Dynamic Imports
2940

3041
Lazy compile async modules introduced by [dynamic import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import):

packages/document/main-doc/docs/zh/configure/app/experiments/lazy-compilation.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ type LazyCompilationOptions =
2525

2626
延迟编译只在开发环境下生效。
2727

28+
## Rspack
29+
30+
import RsbuildLink from '@site/src/components/RsbuildLink';
31+
32+
:::info
33+
该配置项的使用方式与 Rsbuild 完全一致,详细信息可参考 <RsbuildLink configName="dev.lazyCompilation"/>。
34+
:::
35+
36+
## Webpack
37+
2838
### 延迟编译异步模块
2939

3040
延迟编译 [dynamic import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) 引入的异步模块:

0 commit comments

Comments
 (0)