Skip to content

Commit 87082fd

Browse files
authored
docs(en): fix conflicts
1 parent 60ae9f3 commit 87082fd

File tree

4 files changed

+5
-68
lines changed

4 files changed

+5
-68
lines changed

src/content/api/module-methods.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,20 +435,16 @@ const page = 'Foo';
435435
__webpack_modules__[require.resolveWeak(`./page/${page}`)];
436436
```
437437

438-
<<<<<<< HEAD
439438
T> `require.resolveWeak`_通用渲染_(服务器端渲染 SSR + 代码分割 Code Splitting)的基础。例如在 [react-universal-component](https://github.com/faceyspacey/react-universal-component) 等包中的用法。它允许代码在服务器端和客户端初始页面的加载上同步渲染。它要求手动或以某种方式提供 chunk。它可以在不需要指示应该被打包的情况下引入模块。它与 `import()` 一起使用,当用户导航触发额外的导入时,它会被接管。
440-
=======
441-
T> `require.resolveWeak` is the foundation of _universal rendering_ (SSR + Code Splitting), as used in packages such as [react-universal-component](https://github.com/faceyspacey/react-universal-component). It allows code to render synchronously on both the server and initial page-loads on the client. It requires that chunks are manually served or somehow available. It's able to require modules without indicating they should be bundled into a chunk. It's used in conjunction with `import()` which takes over when user navigation triggers additional imports.
442439

443440
### warning
444441

445-
If the module source contains a require that cannot be statically analyzed, critical dependencies warning is emitted.
442+
如果模块源码包含无法静态分析的 require,则会发出关键依赖项警告。
446443

447-
Example code:
444+
示例代码:
448445

449446
```javascript
450447
someFn(require);
451448
require.bind(null);
452449
require(variable);
453450
```
454-
>>>>>>> 48a23c513ad904dd811205b977407227c38264af

src/content/concepts/index.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ T> 可以在 [这里](/concepts/modules) 了解更多关于 JavaScript 模块和
5656

5757
**入口起点(entry point)** 指示 webpack 应该使用哪个模块,来作为构建其内部 [依赖图(dependency graph)](/concepts/dependency-graph/) 的开始。进入入口起点后,webpack 会找出有哪些模块和库是入口起点(直接和间接)依赖的。
5858

59-
<<<<<<< HEAD
6059
默认值是 `./src/index.js`,但你可以通过在 [webpack configuration](/configuration) 中配置 `entry` 属性,来指定一个(或多个)不同的入口起点。例如:
61-
=======
62-
By default its value is `./src/index.js`, but you can specify a different (or multiple) entry points by setting an [`entry` property in the webpack configuration](/configuration/entry-context/#entry). For example:
63-
>>>>>>> 48a23c513ad904dd811205b977407227c38264af
6460

6561
**webpack.config.js**
6662

src/content/configuration/other-options.mdx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -441,26 +441,20 @@ module.exports = {
441441

442442
由包管理器管理的路径数组,在其路径中包含一个版本或哈希,以便所有文件都是不可变的(immutable)。
443443

444-
<<<<<<< HEAD
444+
如果使用正则表达式,请确保将路径包裹在捕获组中。
445+
445446
### managedPaths $#managedpaths$
446-
=======
447447
Make sure to wrap the path in a capture group if you use regular expressions.
448448

449449
### managedPaths
450-
>>>>>>> 48a23c513ad904dd811205b977407227c38264af
451450

452451
`(RegExp | string)[]`
453452

454453
由包管理器管理的路径数组,可以信任它不会被修改。
455454

456-
<<<<<<< HEAD
455+
如果使用正则表达式,请确保将路径包裹在捕获组中。
457456

458457
### module $#module$
459-
=======
460-
Make sure to wrap the path in a capture group if you use regular expressions.
461-
462-
### module
463-
>>>>>>> 48a23c513ad904dd811205b977407227c38264af
464458

465459
`object = {hash boolean = true, timestamp boolean = true}`
466460

yarn.lock

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@
141141
jsonpointer "^5.0.0"
142142
leven "^3.1.0"
143143

144-
<<<<<<< HEAD
145144
"@azu/format-text@^1.0.1":
146145
version "1.0.1"
147146
resolved "https://registry.yarnpkg.com/@azu/format-text/-/format-text-1.0.1.tgz#6967350a94640f6b02855169bd897ce54d6cebe2"
@@ -165,12 +164,6 @@
165164
version "7.16.7"
166165
resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789"
167166
integrity sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==
168-
=======
169-
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.18.6":
170-
version "7.18.6"
171-
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a"
172-
integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==
173-
>>>>>>> 48a23c513ad904dd811205b977407227c38264af
174167
dependencies:
175168
"@babel/highlight" "^7.18.6"
176169

@@ -473,22 +466,10 @@
473466
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz#9c97e30d31b2b8c72a1d08984f2ca9b574d7a076"
474467
integrity sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==
475468

476-
<<<<<<< HEAD
477469
"@babel/highlight@^7.14.5", "@babel/highlight@^7.16.7":
478470
version "7.16.7"
479471
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.7.tgz#81a01d7d675046f0d96f82450d9d9578bdfd6b0b"
480472
integrity sha512-aKpPMfLvGO3Q97V0qhw/V2SWNWlwfJknuwAunU7wZLSfrM4xTBvg7E5opUVi1kJTBKihE38CPg4nBiqX83PWYw==
481-
=======
482-
"@babel/helper-validator-option@^7.14.5", "@babel/helper-validator-option@^7.18.6":
483-
version "7.18.6"
484-
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8"
485-
integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==
486-
487-
"@babel/helper-wrap-function@^7.18.6":
488-
version "7.18.6"
489-
resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.18.6.tgz#ec44ea4ad9d8988b90c3e465ba2382f4de81a073"
490-
integrity sha512-I5/LZfozwMNbwr/b1vhhuYD+J/mU+gfGAj5td7l5Rv9WYmH6i3Om69WGKNmlIpsVW/mF6O5bvTKbvDQZVgjqOw==
491-
>>>>>>> 48a23c513ad904dd811205b977407227c38264af
492473
dependencies:
493474
"@babel/helper-function-name" "^7.18.6"
494475
"@babel/template" "^7.18.6"
@@ -4405,7 +4386,6 @@ concat-map@0.0.1:
44054386
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
44064387
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
44074388

4408-
<<<<<<< HEAD
44094389
concat-stream@^1.6.2:
44104390
version "1.6.2"
44114391
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"
@@ -4420,12 +4400,6 @@ connect-history-api-fallback@^1.6.0:
44204400
version "1.6.0"
44214401
resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz#8b32089359308d111115d81cad3fceab888f97bc"
44224402
integrity sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==
4423-
=======
4424-
connect-history-api-fallback@^2.0.0:
4425-
version "2.0.0"
4426-
resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8"
4427-
integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==
4428-
>>>>>>> 48a23c513ad904dd811205b977407227c38264af
44294403

44304404
console-clear@^1.1.0:
44314405
version "1.1.1"
@@ -12473,7 +12447,6 @@ table-layout@^1.0.1:
1247312447
typical "^5.2.0"
1247412448
wordwrapjs "^4.0.0"
1247512449

12476-
<<<<<<< HEAD
1247712450
table@^3.8.3:
1247812451
version "3.8.3"
1247912452
resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f"
@@ -12490,12 +12463,6 @@ tailwindcss@^3.1.4:
1249012463
version "3.1.4"
1249112464
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.1.4.tgz#64b09059805505902139fa805d97046080bd90b9"
1249212465
integrity sha512-NrxbFV4tYsga/hpWbRyUfIaBrNMXDxx5BsHgBS4v5tlyjf+sDsgBg5m9OxjrXIqAS/uR9kicxLKP+bEHI7BSeQ==
12493-
=======
12494-
tailwindcss@^3.1.6:
12495-
version "3.1.6"
12496-
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.1.6.tgz#bcb719357776c39e6376a8d84e9834b2b19a49f1"
12497-
integrity sha512-7skAOY56erZAFQssT1xkpk+kWt2NrO45kORlxFPXUt3CiGsVPhH1smuH5XoDH6sGPXLyBv+zgCKA2HWBsgCytg==
12498-
>>>>>>> 48a23c513ad904dd811205b977407227c38264af
1249912466
dependencies:
1250012467
arg "^5.0.2"
1250112468
chokidar "^3.5.3"
@@ -12826,7 +12793,6 @@ tr46@^2.1.0:
1282612793
dependencies:
1282712794
punycode "^2.1.1"
1282812795

12829-
<<<<<<< HEAD
1283012796
traverse@^0.6.6:
1283112797
version "0.6.6"
1283212798
resolved "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137"
@@ -12841,12 +12807,6 @@ trim@0.0.1:
1284112807
version "0.0.1"
1284212808
resolved "https://registry.yarnpkg.com/trim/-/trim-0.0.1.tgz#5858547f6b290757ee95cccc666fb50084c460dd"
1284312809
integrity sha1-WFhUf2spB1fulczMZm+1AITEYN0=
12844-
=======
12845-
tr46@~0.0.3:
12846-
version "0.0.3"
12847-
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
12848-
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
12849-
>>>>>>> 48a23c513ad904dd811205b977407227c38264af
1285012810

1285112811
trough@^1.0.0:
1285212812
version "1.0.5"
@@ -12992,7 +12952,6 @@ underscore@^1.8.3:
1299212952
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.1.tgz#0c1c6bd2df54b6b69f2314066d65b6cde6fcf9d1"
1299312953
integrity sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g==
1299412954

12995-
<<<<<<< HEAD
1299612955
unherit@^1.0.4:
1299712956
version "1.1.3"
1299812957
resolved "https://registry.yarnpkg.com/unherit/-/unherit-1.1.3.tgz#6c9b503f2b41b262330c80e91c8614abdaa69c22"
@@ -13006,8 +12965,6 @@ unicode-canonical-property-names-ecmascript@^1.0.4:
1300612965
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818"
1300712966
integrity sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==
1300812967

13009-
=======
13010-
>>>>>>> 48a23c513ad904dd811205b977407227c38264af
1301112968
unicode-canonical-property-names-ecmascript@^2.0.0:
1301212969
version "2.0.0"
1301312970
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc"
@@ -13757,15 +13714,9 @@ whatwg-url@^7.0.0:
1375713714
webidl-conversions "^4.0.2"
1375813715

1375913716
whatwg-url@^8.0.0, whatwg-url@^8.5.0:
13760-
<<<<<<< HEAD
1376113717
version "8.7.0"
1376213718
resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77"
1376313719
integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==
13764-
=======
13765-
version "8.5.0"
13766-
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.5.0.tgz#7752b8464fc0903fec89aa9846fc9efe07351fd3"
13767-
integrity sha512-fy+R77xWv0AiqfLl4nuGUlQ3/6b5uNfQ4WAbGQVMYshCTCCPK9psC1nWh3XHuxGVCtlcDDQPQW1csmmIQo+fwg==
13768-
>>>>>>> 48a23c513ad904dd811205b977407227c38264af
1376913720
dependencies:
1377013721
lodash "^4.7.0"
1377113722
tr46 "^2.1.0"

0 commit comments

Comments
 (0)