Skip to content

Commit a449a78

Browse files
Merge pull request #421 from hex-ci/patch-1
修复翻译问题
2 parents a500a5d + 701d5c2 commit a449a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/guides/code-splitting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ another.bundle.js 537 bytes 1 [emitted] another
170170

171171
当涉及到动态代码拆分时,webpack 提供了两个类似的技术。对于动态导入,第一种,也是优先选择的方式是,使用符合 [ECMAScript 提案](https://github.com/tc39/proposal-dynamic-import)[`import()` 语法](/api/module-methods#import-)。第二种,则是使用 webpack 特定的 [`require.ensure`](/api/module-methods#require-ensure)。让我们先尝试使用第一种……
172172

173-
W> `import()` 调用使用会在内部用到 [promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)。如果在旧有版本浏览器中使用 `import()`,记得使用 一个 polyfill 库(例如 [es6-promise](https://github.com/stefanpenner/es6-promise)[promise-polyfill](https://github.com/taylorhakes/promise-polyfill)),来 shim `Promise`
173+
W> `import()` 调用会在内部用到 [promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)。如果在旧有版本浏览器中使用 `import()`,记得使用 一个 polyfill 库(例如 [es6-promise](https://github.com/stefanpenner/es6-promise)[promise-polyfill](https://github.com/taylorhakes/promise-polyfill)),来 shim `Promise`
174174

175175
在我们开始本节之前,先从配置中移除掉多余的 [`entry`](/concepts/entry-points/)[`CommonsChunkPlugin`](/plugins/commons-chunk-plugin),因为接下来的演示中并不需要它们:
176176

0 commit comments

Comments
 (0)