File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,11 @@ See [Output Format](/guide/basic/output-format) and [Module Federation](/guide/a
13
13
The ` umd ` format only works when [ bundle] ( /config/lib/bundle ) is set to ` true ` .
14
14
15
15
:::
16
+
17
+ ## Module definition systems
18
+
19
+ In different output formats, Rslib uses the following default module definition systems:
20
+
21
+ - ` esm ` :[ modern-module] ( https://rspack.dev/config/output#type-modern-module )
22
+ - ` cjs ` :[ commonjs-static] ( https://rspack.dev/config/output#type-commonjs-static )
23
+ - ` umd ` :[ umd] ( https://rspack.dev/config/output#type-umd )
Original file line number Diff line number Diff line change 11
11
::: note
12
12
` umd ` 格式仅在 [ bundle] ( /config/lib/bundle ) 设置为 ` true ` 时有效。
13
13
:::
14
+
15
+ ## 模块定义系统
16
+
17
+ 在不同的产物格式下,Rslib 默认使用的模块定义系统如下:
18
+
19
+ - ` esm ` :[ modern-module] ( https://rspack.dev/zh/config/output#type-modern-module )
20
+ - ` cjs ` :[ commonjs-static] ( https://rspack.dev/zh/config/output#type-commonjs-static )
21
+ - ` umd ` :[ umd] ( https://rspack.dev/zh/config/output#type-umd )
You can’t perform that action at this time.
0 commit comments