Skip to content

docs(en): merge webpack.js.org/master into webpack.js.org/cn @ c6223458 #1572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ updates:
interval: "daily"
labels:
- "dependencies"
<<<<<<< HEAD
allowed_updates:
- match:
dependency_name: "textlint"
=======
ignore:
- dependency-name: "react"
- dependency-name: "react-dom"
>>>>>>> c6223458c4f25925e655aca27ae126d1aad674b4
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,19 @@
"github-slugger": "^1.4.0",
"html-loader": "^2.1.2",
"html-webpack-plugin": "^5.5.0",
"http-server": "^14.1.0",
"http-server": "^14.1.1",
"husky": "^8.0.1",
"hyperlink": "^5.0.4",
"jest": "^28.1.0",
"lint-staged": "^12.4.3",
"lint-staged": "^13.0.0",
"lodash": "^4.17.21",
"markdownlint": "^0.25.1",
"markdownlint-cli": "^0.31.1",
"mdast-util-to-string": "^3.1.0",
"mini-css-extract-plugin": "^2.6.0",
"mkdirp": "^1.0.4",
"modularscale-sass": "^3.0.3",
"node-fetch": "^3.2.4",
"node-fetch": "^3.2.5",
"npm-run-all": "^4.1.1",
"postcss": "^8.4.14",
"postcss-loader": "^7.0.0",
Expand Down Expand Up @@ -143,10 +143,10 @@
"textlint": "^11.8.2",
"textlint-rule-heading": "^1.0.10",
"unist-util-visit": "^4.1.0",
"webpack": "^5.72.1",
"webpack": "^5.73.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.9.0",
"webpack-dev-server": "^4.9.1",
"webpack-merge": "^5.8.0",
"workbox-webpack-plugin": "^6.5.3"
},
Expand Down
61 changes: 61 additions & 0 deletions src/content/configuration/module.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,68 @@ module.exports = {
const x = require(/* webpackIgnore: true */ 'x');
```

<<<<<<< HEAD
#### module.parser.javascript.exportsPresence $#moduleparserjavascriptexportspresence$
=======
#### module.parser.javascript.dynamicImportMode

Specifies global mode for dynamic import.

- Type: `'eager' | 'weak' | 'lazy' | 'lazy-once'`
- Available: 5.73.0+
- Example:
```js
module.exports = {
module: {
parser: {
javascript: {
dynamicImportMode: 'lazy',
},
},
},
};
```

#### module.parser.javascript.dynamicImportPrefetch

Specifies global prefetch for dynamic import.

- Type: ` number | boolean`
- Available: 5.73.0+
- Example:
```js
module.exports = {
module: {
parser: {
javascript: {
dynamicImportPrefetch: false,
},
},
},
};
```

#### module.parser.javascript.dynamicImportPreload

Specifies global preload for dynamic import.

- Type: ` number | boolean`
- Available: 5.73.0+
- Example:
```js
module.exports = {
module: {
parser: {
javascript: {
dynamicImportPreload: false,
},
},
},
};
```

#### module.parser.javascript.exportsPresence
>>>>>>> c6223458c4f25925e655aca27ae126d1aad674b4

指出在 `\"import ... from ...\"` 与 `\"export ... from ...\"` 中无效导出名称的行为。

Expand Down
2 changes: 1 addition & 1 deletion src/content/plugins/module-federation-plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {

Create a new runtime chunk with the specified name.

**webpack.js.org**
**webpack.config.js**

```js
const { ModuleFederationPlugin } = require('webpack').container;
Expand Down
Loading