From d9cd89577670e772c715bf568d20a69e54188f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E5=BF=86?= Date: Wed, 12 Jun 2024 15:12:30 +0800 Subject: [PATCH] docs(build): improve the description in how-to-use-exports-and-require-in-mediawiki.md --- docs/how-to-use-exports-and-require-in-mediawiki.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/how-to-use-exports-and-require-in-mediawiki.md b/docs/how-to-use-exports-and-require-in-mediawiki.md index a68c8fbe..4020fd5e 100644 --- a/docs/how-to-use-exports-and-require-in-mediawiki.md +++ b/docs/how-to-use-exports-and-require-in-mediawiki.md @@ -84,10 +84,6 @@ console.log({ - `moment` - - 目标 MediaWiki 的版本低于 1.38
The target MediaWiki version is lower than 1.38 - - 运行`pnpm remove moment`和`pnpm add @types/moment`
Run `pnpm remove moment` and `pnpm add @types/moment` - - 在小工具对应的`definition.json`中,将`moment`添加为依赖项(`dependencies`)
In the corresponding `definition.json` of the gadget, add the `moment` package as a dependency - - 无需导入,`moment`应该全局可用
No need to import, `moment` should be globally available - 目标 MediaWiki 的版本不低于 1.38
The target MediaWiki version is at least 1.38 - 在小工具对应的`definition.json`中,将`moment`添加为依赖项(`dependencies`)
In the corresponding `definition.json` of the gadget, add the `moment` package as a dependency - 使用`import`来导入,如:
Use `import`. For example: