Skip to content

Commit 8705c72

Browse files
authored
docs(cn): fixed typo(#1726) (#1727)
1 parent 07c529c commit 8705c72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/api/module-methods.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ CommonJS 的目标是为浏览器之外的 JavaScript 指定一个生态系统
177177
require(dependency: String);
178178
```
179179

180-
已同步的方式检索其他模块的导出。编译器(compiler)会确保依赖项在输出 bundle 中可用。
180+
以同步的方式检索其他模块的导出。编译器(compiler)会确保依赖项在输出 bundle 中可用。
181181

182182
```javascript
183183
var $ = require('jquery');
@@ -194,7 +194,7 @@ W> 以异步的方式使用,可能不会达到预期效果。
194194
require.resolve(dependency: String);
195195
```
196196

197-
已同步的方式获取模块的 ID。编译器(compiler)会确保依赖项在最终输出 bundle 中可用。建议将其视为不透明值,只能与 `require.cache[id]``__webpack_require__(id)` 配合使用(最好避免这种用法)。
197+
以同步的方式获取模块的 ID。编译器(compiler)会确保依赖项在最终输出 bundle 中可用。建议将其视为不透明值,只能与 `require.cache[id]``__webpack_require__(id)` 配合使用(最好避免这种用法)。
198198

199199
W> 模块 ID 的类型可以是 `number``string`,具体取决于 [`optimization.moduleIds`](/configuration/optimization/#optimizationmoduleids) 配置。
200200

0 commit comments

Comments
 (0)