File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ CommonJS 的目标是为浏览器之外的 JavaScript 指定一个生态系统
177177require (dependency : String );
178178```
179179
180- 已同步的方式检索其他模块的导出 。编译器(compiler)会确保依赖项在输出 bundle 中可用。
180+ 以同步的方式检索其他模块的导出 。编译器(compiler)会确保依赖项在输出 bundle 中可用。
181181
182182``` javascript
183183var $ = require (' jquery' );
@@ -194,7 +194,7 @@ W> 以异步的方式使用,可能不会达到预期效果。
194194require .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
199199W> 模块 ID 的类型可以是 ` number ` 或 ` string ` ,具体取决于 [ ` optimization.moduleIds ` ] ( /configuration/optimization/#optimizationmoduleids ) 配置。
200200
You can’t perform that action at this time.
0 commit comments