Skip to content

Commit 366365d

Browse files
committed
chore: update
1 parent d364157 commit 366365d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

website/docs/en/config/lib/umd-name.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The module name of the UMD bundle must not conflict with the global variable nam
1313

1414
## Example
1515

16-
- Mount the UMD bundle to `globalThis.MyLibrary`.
16+
- Mount the UMD bundle to `global.MyLibrary`.
1717

1818
```ts title="rslib.config.ts"
1919
export default {
@@ -26,7 +26,7 @@ export default {
2626
};
2727
```
2828

29-
- Mount the UMD bundle to `globalThis.MyLibrary1.MyLibrary2`.
29+
- Mount the UMD bundle to `global.MyLibrary1.MyLibrary2`.
3030

3131
```ts title="rslib.config.ts"
3232
export default {

website/docs/zh/config/lib/umd-name.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ UMD 包的模块名称不能与全局变量名称冲突。
1313

1414
## 示例
1515

16-
- 将 UMD 包挂载到 `globalThis.MyLibrary`
16+
- 将 UMD 包挂载到 `global.MyLibrary`
1717

1818
```ts title="rslib.config.ts"
1919
export default {
@@ -26,7 +26,7 @@ export default {
2626
};
2727
```
2828

29-
- 将 UMD 包挂载到 `globalThis.MyLibrary1.MyLibrary2`
29+
- 将 UMD 包挂载到 `global.MyLibrary1.MyLibrary2`
3030

3131
```ts title="rslib.config.ts"
3232
export default {

0 commit comments

Comments
 (0)