Skip to content

Commit 7958314

Browse files
committed
chore: update
1 parent eee96f4 commit 7958314

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

website/docs/en/config/rsbuild/resolve.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ It is worth noting that in bundle mode, both `resolve.alias` and [output.externa
5050
Now, the code `import { useState } from 'react'` will be replaced with `import { useState } from 'preact/compat'`.
5151

5252
::: note
53-
In bundleless mode, since there is no bundling concept, all modules will be externalized, so we will automatically replace the aliases in `resolve.alias` with `output.externals` to ensure the final output is generated correctly.
53+
In bundleless mode, since there is no bundling concept, all modules will be externalized, so Rslib will automatically externalize the aliased module in the final output by using `output.externals`.
5454
:::
5555

5656
## resolve.dedupe <RsbuildDocBadge path="/config/resolve/dedupe" text="resolve.dedupe" />

website/docs/zh/config/rsbuild/resolve.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import { RsbuildDocBadge } from '@components/RsbuildDocBadge';
5050
此时,代码 `import { useState } from 'react'` 将被替换为 `import { useState } from 'preact/compat'`
5151

5252
::: note
53-
在 bundleless 模式下,由于并没有打包这个概念,所有模块都会被外部化,因此我们会自动将 `resolve.alias` 中的别名替换为 `output.externals` 以确保最终生成正确的产物
53+
在 bundleless 模式下,由于并没有打包这个概念,所有模块都会被外部化,因此 Rslib 会自动将 `resolve.alias` 中解析的模块通过 `output.externals` 外部化
5454
:::
5555

5656
## resolve.dedupe <RsbuildDocBadge path="/config/resolve/dedupe" text="resolve.dedupe" />

0 commit comments

Comments
 (0)