File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export default defineConfig({
8787});
8888```
8989
90- ## Typescript Declaration
90+ ## TypeScript Declaration
9191
9292If you use Typescript in your ` Modern.js Module ` and need to generate declaration files, add the following changes:
9393
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export default defineConfig({
8787});
8888```
8989
90- ## Typescript 类型定义
90+ ## TypeScript 类型定义
9191
9292如果你在 ` Modern.js Module ` 中使用 Typescript 并需要生成类型定义文件,请添加以下更改:
9393
You can’t perform that action at this time.
0 commit comments