Skip to content

Commit 3ef0d95

Browse files
author
袁程
committed
docs(cn): translate src/content/api/module-variables.md
1 parent a0aa7ae commit 3ef0d95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/api/module-variables.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ exports.aFunction = function doSomething() {
8383

8484
取决于 `node.__dirname` 配置选项:
8585

86-
- `false`: Not defined
87-
- `mock`: equal to `'/'`
86+
- `false`: 未定义
87+
- `mock`: 等同于 `'/'`
8888
- `true`: [node.js __dirname](https://nodejs.org/api/globals.html#globals_dirname)
8989

9090
如果在一个被 Parser 解析的表达式内部使用,则配置选项会被当作 `true` 处理。
@@ -94,8 +94,8 @@ exports.aFunction = function doSomething() {
9494

9595
取决于 `node.__filename` 配置选项:
9696

97-
- `false`: Not defined
98-
- `mock`: equal to `'/index.js'`
97+
- `false`: 未定义
98+
- `mock`: 等同于 `'/index.js'`
9999
- `true`: [node.js __filename](https://nodejs.org/api/globals.html#globals_filename)
100100

101101
如果在一个被 Parser 解析的表达式内部使用,则配置选项会被当作 `true` 处理。

0 commit comments

Comments
 (0)