Skip to content

Commit

Permalink
docs(build): improve the description
Browse files Browse the repository at this point in the history
in how-to-use-exports-and-require-in-mediawiki.md
  • Loading branch information
AnYiEE committed Jun 12, 2024
1 parent 35e9ee8 commit d9cd895
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/how-to-use-exports-and-require-in-mediawiki.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ console.log({

- `moment`

- 目标 MediaWiki 的版本低于 1.38<br>The target MediaWiki version is lower than 1.38
- 运行`pnpm remove moment``pnpm add @types/moment`<br>Run `pnpm remove moment` and `pnpm add @types/moment`
- 在小工具对应的`definition.json`中,将`moment`添加为依赖项(`dependencies`)<br>In the corresponding `definition.json` of the gadget, add the `moment` package as a dependency
- 无需导入,`moment`应该全局可用<br>No need to import, `moment` should be globally available
- 目标 MediaWiki 的版本不低于 1.38<br>The target MediaWiki version is at least 1.38
- 在小工具对应的`definition.json`中,将`moment`添加为依赖项(`dependencies`)<br>In the corresponding `definition.json` of the gadget, add the `moment` package as a dependency
- 使用`import`来导入,如:<br> Use `import`. For example:
Expand Down

0 comments on commit d9cd895

Please sign in to comment.