Skip to content

Commit 7f49165

Browse files
committed
chore: update
1 parent 245934d commit 7f49165

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

website/docs/en/guide/migration/modernjs-module.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default defineConfig({
8787
});
8888
```
8989

90-
## Typescript Declaration
90+
## TypeScript Declaration
9191

9292
If you use Typescript in your `Modern.js Module` and need to generate declaration files, add the following changes:
9393

website/docs/zh/guide/basic/output-format.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Rslib 支持四种 JavaScript 文件的输出格式:`esm`、`cjs`、`umd` 和
4545
- 一些 Node.js 工具和库仍然对 ESM 有限制或不支持,需要解决方法或额外配置。
4646
- 你必须在导入路径中显式包含文件扩展名,这可能会很麻烦,尤其是在使用 TypeScript 或其他转译语言时。
4747

48-
#### 发布 [ESM 和 CJS (双重)](https://antfu.me/posts/publish-esm-and-cjs#compatibility)
48+
#### 发布 [ESM 和 CJS(双重)](https://antfu.me/posts/publish-esm-and-cjs#compatibility)
4949

5050
社区正在向 ESM 迁移,但仍有许多项目在使用 CJS。如果你想同时支持 ESM 和 CJS,可以发布一个双重包。对于大多数库作者来说,提供双重格式是一种更安全、更平滑的方式,可以同时享受两种格式的优点。你可以阅读 antfu 的博客文章 [在一个包中发布 ESM 和 CJS](https://antfu.me/posts/publish-esm-and-cjs) 了解更多详情。
5151

website/docs/zh/guide/migration/modernjs-module.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default defineConfig({
8787
});
8888
```
8989

90-
## Typescript 类型定义
90+
## TypeScript 类型定义
9191

9292
如果你在 `Modern.js Module` 中使用 Typescript 并需要生成类型定义文件,请添加以下更改:
9393

0 commit comments

Comments
 (0)