Skip to content

Commit 2d4a251

Browse files
committed
docs(en): fix conflicts
1 parent f90fcc9 commit 2d4a251

File tree

6 files changed

+12
-101
lines changed

6 files changed

+12
-101
lines changed

src/content/api/module-variables.mdx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,23 +169,19 @@ import('./module-a').then((moduleA) => {
169169
});
170170
```
171171
172-
<<<<<<< HEAD
173-
## \_\_webpack_modules\_\_ (webpack-specific) $#__webpack_modules__-webpack-specific$
174-
=======
175-
## \_\_webpack_module\_\_ (webpack-specific)
172+
## \_\_webpack_module\_\_ (webpack-specific) $#__webpack_module__-webpack-specific$
176173
177174
<Badge text="5.68.0+" />
178175
179-
It provides access to the the current `module`. `module` is not available in strict ESM.
176+
它提供对当前 `module` 的访问。`module` ESM 严格模式下不可用。
180177
181-
## \_\_webpack_module\_\_.id (webpack-specific)
178+
## \_\_webpack_module\_\_.id (webpack-specific) $#__webpack_module__id-webpack-specific$
182179
183180
<Badge text="5.68.0+" />
184181
185-
It provides access to the ID of current `module` (`module.id`). `module` is not available in strict ESM.
182+
它提供对当前 `module`(`module.id`) ID 的访问。`module` ESM 严格模式下不可用。
186183
187-
## \_\_webpack_modules\_\_ (webpack-specific)
188-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
184+
## \_\_webpack_modules\_\_ (webpack-specific) $#__webpack_modules__-webpack-specific$
189185
190186
访问所有模块的内部对象。
191187

src/content/concepts/index.mdx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,8 @@ T> 查看 [插件接口(plugin interface)](/api/plugins),学习如何使用它
139139
**webpack.config.js**
140140

141141
```javascript
142-
<<<<<<< HEAD
143-
const HtmlWebpackPlugin = require('html-webpack-plugin'); // 通过 npm 安装
144-
const webpack = require('webpack'); // 用于访问内置插件
145-
=======
146142
const HtmlWebpackPlugin = require('html-webpack-plugin');
147-
const webpack = require('webpack'); //to access built-in plugins
148-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
143+
const webpack = require('webpack'); // 用于访问内置插件
149144

150145
module.exports = {
151146
module: {

src/content/concepts/loaders.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,9 @@ module.exports = {
5353
- [配置方式](#configuration)(推荐):在 **webpack.config.js** 文件中指定 loader。
5454
- [内联方式](#inline):在每个 `import` 语句中显式指定 loader。
5555

56-
<<<<<<< HEAD
57-
### 配置方式 $#configuration$
58-
=======
59-
Note that loaders can be used from CLI under webpack v4, but the feature was deprecated in webpack v5.
56+
注意在 webpack v4 版本可以通过 CLI 使用 loader,但是在 webpack v5 中被弃用。
6057

61-
### Configuration
62-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
58+
### Configuration $#configuration$
6359

6460
[`module.rules`](/configuration/module/#modulerules) 允许你在 webpack 配置中指定多个 loader。
6561
这种方式是展示 loader 的一种简明方式,并且有助于使代码变得简洁和易于维护。同时让你对各个 loader 有个全局概览:

src/content/concepts/plugins.mdx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,8 @@ compiler hook 的 tap 方法的第一个参数,应该是驼峰式命名的插
5555
**webpack.config.js**
5656

5757
```javascript
58-
<<<<<<< HEAD
59-
const HtmlWebpackPlugin = require('html-webpack-plugin'); // 通过 npm 安装
60-
const webpack = require('webpack'); // 访问内置的插件
61-
=======
6258
const HtmlWebpackPlugin = require('html-webpack-plugin');
63-
const webpack = require('webpack'); //to access built-in plugins
64-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
59+
const webpack = require('webpack'); // 访问内置的插件
6560
const path = require('path');
6661

6762
module.exports = {

src/content/configuration/output.mdx

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,7 @@ module.exports = {
681681

682682
`string = 'hex'`
683683

684-
<<<<<<< HEAD
685-
在生成 hash 时使用的编码方式。支持 Node.js [`hash.digest`](https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding) 的所有编码。对文件名使用 `'base64'`,可能会出现问题,因为 base64 字母表中具有 `/` 这个字符(character)。同样的,`'latin1'` 规定可以含有任何字符(character)。
686-
=======
687-
The encoding to use when generating the hash. All encodings from Node.JS' [`hash.digest`](https://nodejs.org/api/buffer.html#buffers-and-character-encodings) are supported. Using `'base64'` for filenames might be problematic since it has the character `/` in its alphabet. Likewise `'latin1'` could contain any character.
688-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
684+
在生成 hash 时使用的编码方式。支持 Node.js [`hash.digest`](https://nodejs.org/api/buffer.html#buffers-and-character-encodings) 的所有编码。对文件名使用 `'base64'`,可能会出现问题,因为 base64 字母表中具有 `/` 这个字符(character)。同样的,`'latin1'` 规定可以含有任何字符(character)。
689685

690686
## output.hashDigestLength $#outputhashdigestlength$
691687

@@ -974,13 +970,9 @@ MyLibrary = _entry_return_;
974970

975971
请注意,如果 `MyLibrary` 没有在你的库之前定义,那么它将会被设置在全局作用域。
976972

977-
<<<<<<< HEAD
978-
##### type: 'assign-properties' <Badge text='5.16.0+' /> $#typeassignproperties$
979-
=======
980-
##### type: 'assign-properties'
973+
##### type: 'assign-properties' $#typeassignproperties$
981974

982975
<Badge text="5.16.0+" />
983-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
984976

985977
```js
986978
module.exports = {
@@ -1630,13 +1622,9 @@ MyLibrary = _entry_return_;
16301622

16311623
注意,如果 `MyLibrary` 在作用域中未在前面代码进行定义,则你的 library 将被设置在全局作用域内。
16321624

1633-
<<<<<<< HEAD
1634-
#### libraryTarget: 'assign-properties' <Badge text='5.16.0+' /> $#libraryTarget-assign-properties$
1635-
=======
1636-
#### libraryTarget: 'assign-properties'
1625+
#### libraryTarget: 'assign-properties' $#libraryTarget-assign-properties$
16371626

16381627
<Badge text="5.16.0+" />
1639-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
16401628

16411629
W> 最好使用 [output.library.type: 'assign-properties'`](#type-assign-properties)。
16421630

yarn.lock

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -5900,21 +5900,12 @@ find-cache-dir@^3.3.1:
59005900
make-dir "^3.0.2"
59015901
pkg-dir "^4.1.0"
59025902

5903-
<<<<<<< HEAD
59045903
find-up@^2.0.0:
59055904
version "2.1.0"
59065905
resolved "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7"
59075906
integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c=
59085907
dependencies:
59095908
locate-path "^2.0.0"
5910-
=======
5911-
find-replace@^3.0.0:
5912-
version "3.0.0"
5913-
resolved "https://registry.yarnpkg.com/find-replace/-/find-replace-3.0.0.tgz#3e7e23d3b05167a76f770c9fbd5258b0def68c38"
5914-
integrity sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==
5915-
dependencies:
5916-
array-back "^3.0.1"
5917-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
59185909

59195910
find-up@^4.0.0, find-up@^4.1.0:
59205911
version "4.1.0"
@@ -9295,7 +9286,6 @@ nano-css@^5.3.1:
92959286
stacktrace-js "^2.0.2"
92969287
stylis "^4.0.6"
92979288

9298-
<<<<<<< HEAD
92999289
nanocolors@^0.1.0, nanocolors@^0.1.5:
93009290
version "0.1.12"
93019291
resolved "https://registry.yarnpkg.com/nanocolors/-/nanocolors-0.1.12.tgz#8577482c58cbd7b5bb1681db4cf48f11a87fd5f6"
@@ -9305,12 +9295,6 @@ nanoid@^3.1.30:
93059295
version "3.1.30"
93069296
resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.1.30.tgz#63f93cc548d2a113dc5dfbc63bfa09e2b9b64362"
93079297
integrity sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==
9308-
=======
9309-
nanoid@^3.2.0:
9310-
version "3.2.0"
9311-
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.2.0.tgz#62667522da6673971cca916a6d3eff3f415ff80c"
9312-
integrity sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==
9313-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
93149298

93159299
natural-compare@^1.4.0:
93169300
version "1.4.0"
@@ -12243,7 +12227,6 @@ synckit@^0.4.1:
1224312227
tslib "^2.3.1"
1224412228
uuid "^8.3.2"
1224512229

12246-
<<<<<<< HEAD
1224712230
table@^3.8.3:
1224812231
version "3.8.3"
1224912232
resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f"
@@ -12260,22 +12243,6 @@ tailwindcss@^3.0.17:
1226012243
version "3.0.17"
1226112244
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.0.17.tgz#2c5fe6c364d76ec54644347c6f09befe0113b06f"
1226212245
integrity sha512-OiHUsmOKQQEg/ocXaLIjk/kOz8EK2jF6iPuc1bQ4NsmhYl7sk70UDsGV02AJvBAAiJhinPCkDR8egT9qY+ulCw==
12263-
=======
12264-
table-layout@^1.0.1:
12265-
version "1.0.2"
12266-
resolved "https://registry.yarnpkg.com/table-layout/-/table-layout-1.0.2.tgz#c4038a1853b0136d63365a734b6931cf4fad4a04"
12267-
integrity sha512-qd/R7n5rQTRFi+Zf2sk5XVVd9UQl6ZkduPFC3S7WEGJAmetDTjY3qPN50eSKzwuzEyQKy5TN2TiZdkIjos2L6A==
12268-
dependencies:
12269-
array-back "^4.0.1"
12270-
deep-extend "~0.6.0"
12271-
typical "^5.2.0"
12272-
wordwrapjs "^4.0.0"
12273-
12274-
tailwindcss@^3.0.18:
12275-
version "3.0.18"
12276-
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.0.18.tgz#ea4825e6496d77dc21877b6b61c7cc56cda3add5"
12277-
integrity sha512-ihPTpEyA5ANgZbwKlgrbfnzOp9R5vDHFWmqxB1PT8NwOGCOFVVMl+Ps1cQQ369acaqqf1BEF77roCwK0lvNmTw==
12278-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
1227912246
dependencies:
1228012247
arg "^5.0.1"
1228112248
chalk "^4.1.2"
@@ -12722,22 +12689,10 @@ typedarray-to-buffer@^3.1.5:
1272212689
dependencies:
1272312690
is-typedarray "^1.0.0"
1272412691

12725-
<<<<<<< HEAD
1272612692
typedarray@^0.0.6:
1272712693
version "0.0.6"
1272812694
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
1272912695
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
12730-
=======
12731-
typical@^4.0.0:
12732-
version "4.0.0"
12733-
resolved "https://registry.yarnpkg.com/typical/-/typical-4.0.0.tgz#cbeaff3b9d7ae1e2bbfaf5a4e6f11eccfde94fc4"
12734-
integrity sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==
12735-
12736-
typical@^5.2.0:
12737-
version "5.2.0"
12738-
resolved "https://registry.yarnpkg.com/typical/-/typical-5.2.0.tgz#4daaac4f2b5315460804f0acf6cb69c52bb93066"
12739-
integrity sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==
12740-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
1274112696

1274212697
uc.micro@^1.0.1, uc.micro@^1.0.5:
1274312698
version "1.0.6"
@@ -13343,17 +13298,10 @@ webpack-cli@^4.9.2:
1334313298
rechoir "^0.7.0"
1334413299
webpack-merge "^5.7.3"
1334513300

13346-
<<<<<<< HEAD
1334713301
webpack-dev-middleware@^5.3.0:
1334813302
version "5.3.0"
1334913303
resolved "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.0.tgz#8fc02dba6e72e1d373eca361623d84610f27be7c"
1335013304
integrity sha512-MouJz+rXAm9B1OTOYaJnn6rtD/lWZPy2ufQCH3BPs8Rloh/Du6Jze4p7AeLYHkVi0giJnYLaSGDC7S+GM9arhg==
13351-
=======
13352-
webpack-dev-middleware@^5.3.1:
13353-
version "5.3.1"
13354-
resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.1.tgz#aa079a8dedd7e58bfeab358a9af7dab304cee57f"
13355-
integrity sha512-81EujCKkyles2wphtdrnPg/QqegC/AtqNH//mQkBYSMqwFVCQrxM6ktB2O/SPlZy7LqeEfTbV3cZARGQz6umhg==
13356-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
1335713305
dependencies:
1335813306
colorette "^2.0.10"
1335913307
memfs "^3.4.1"
@@ -13913,7 +13861,6 @@ ws@^7.3.1, ws@^7.4.5, ws@^7.4.6:
1391313861
resolved "https://registry.npmjs.org/ws/-/ws-7.5.6.tgz#e59fc509fb15ddfb65487ee9765c5a51dec5fe7b"
1391413862
integrity sha512-6GLgCqo2cy2A2rjCNFlxQS6ZljG/coZfZXclldI8FB/1G3CCI36Zd8xy2HrFVACi8tfk5XrgLQEk+P0Tnz9UcA==
1391513863

13916-
<<<<<<< HEAD
1391713864
ws@^8.1.0:
1391813865
version "8.4.0"
1391913866
resolved "https://registry.npmjs.org/ws/-/ws-8.4.0.tgz#f05e982a0a88c604080e8581576e2a063802bed6"
@@ -13923,12 +13870,6 @@ x-is-string@^0.1.0:
1392313870
version "0.1.0"
1392413871
resolved "https://registry.npmjs.org/x-is-string/-/x-is-string-0.1.0.tgz#474b50865af3a49a9c4657f05acd145458f77d82"
1392513872
integrity sha1-R0tQhlrzpJqcRlfwWs0UVFj3fYI=
13926-
=======
13927-
ws@^8.4.2:
13928-
version "8.4.2"
13929-
resolved "https://registry.yarnpkg.com/ws/-/ws-8.4.2.tgz#18e749868d8439f2268368829042894b6907aa0b"
13930-
integrity sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==
13931-
>>>>>>> 0462e9b4100e33f9d1fd6b1b8730bf51369a4ea4
1393213873

1393313874
xhr@^2.0.1:
1393413875
version "2.6.0"

0 commit comments

Comments
 (0)