Skip to content

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

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 20 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
4a54cd1
docs: fix typo (#6191)
oscar-b Jun 2, 2022
0a76aac
build(deps-dev): bump webpack-dev-server from 4.9.0 to 4.9.1 (#6185)
dependabot[bot] Jun 3, 2022
7c94ad0
build(deps-dev): bump lint-staged from 12.4.3 to 13.0.0 (#6188)
dependabot[bot] Jun 3, 2022
7255bd5
build(deps-dev): bump http-server from 14.1.0 to 14.1.1 (#6190)
dependabot[bot] Jun 3, 2022
e14551a
build(deps-dev): bump node-fetch from 3.2.4 to 3.2.5 (#6193)
dependabot[bot] Jun 3, 2022
3506584
build(deps-dev): bump webpack from 5.72.1 to 5.73.0 (#6192)
dependabot[bot] Jun 3, 2022
bee26a6
docs(configuration): add parser options for dynamic import (#6145)
snitin315 Jun 3, 2022
c622345
Feature/downgrade react (#6197)
chenxsan Jun 3, 2022
0ccafd7
build(deps-dev): bump sass from 1.52.1 to 1.52.2 (#6199)
dependabot[bot] Jun 4, 2022
bd4c9a3
upgrade cypress to v10 (#6195)
chenxsan Jun 4, 2022
c9d41a9
build(deps-dev): bump @babel/preset-env from 7.18.0 to 7.18.2 (#6180)
dependabot[bot] Jun 4, 2022
eeaea93
build(deps-dev): bump webpack-dev-server from 4.9.1 to 4.9.2 (#6200)
dependabot[bot] Jun 7, 2022
0ce82a5
build(deps-dev): bump eslint from 8.16.0 to 8.17.0 (#6201)
dependabot[bot] Jun 7, 2022
657e6db
build(deps-dev): bump cypress from 10.0.2 to 10.0.3 (#6202)
dependabot[bot] Jun 8, 2022
8af62c6
build(deps-dev): bump jest from 28.1.0 to 28.1.1 (#6203)
dependabot[bot] Jun 8, 2022
26c50c4
build(deps-dev): bump lint-staged from 13.0.0 to 13.0.1 (#6204)
dependabot[bot] Jun 9, 2022
7d18de7
build(deps-dev): bump sass from 1.52.2 to 1.52.3 (#6208)
dependabot[bot] Jun 10, 2022
f9022fc
build(deps-dev): bump tailwindcss from 3.0.24 to 3.1.0 (#6207)
dependabot[bot] Jun 10, 2022
a65a9be
docs(api): add note about `env` usage (#6209)
snitin315 Jun 10, 2022
56f91a9
docs(en): merging all conflicts
docschina-bot Jun 10, 2022
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
Prev Previous commit
Next Next commit
docs(configuration): add parser options for dynamic import (webpack#6145
)
  • Loading branch information
snitin315 authored Jun 3, 2022
commit bee26a6bb0f9d292d3dd1ef76229db96cceee731
57 changes: 57 additions & 0 deletions src/content/configuration/module.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,63 @@ Note that only `webpackIgnore` comment is supported at the moment:
const x = require(/* webpackIgnore: true */ 'x');
```

#### 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

Specifies the behavior of invalid export names in `\"import ... from ...\"` and `\"export ... from ...\"`.
Expand Down