Skip to content

Fix typos #4400

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

Merged
merged 1 commit into from
Jan 7, 2021
Merged
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
4 changes: 2 additions & 2 deletions src/content/configuration/module.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {

`boolean` `function (module)`

Cache the resolution of module requests. There are couple of defaults for `module.unsafeCache`:
Cache the resolution of module requests. There are a couple of defaults for `module.unsafeCache`:

- `false` if [`cache`](/configuration/other-options/#cache) is disabled.
- `true` if [`cache`](/configuration/other-options/#cache) is enabled and the module appears to come from node modules, `false` otherwise.
Expand Down Expand Up @@ -167,7 +167,7 @@ import { b } from '-!./file2.js';
import { c } from '!!./file3.js';
```

Inline loaders and `!` prefixes should not be used as they are non-standard. They may be use by loader generated code.
Inline loaders and `!` prefixes should not be used as they are non-standard. They may be used by loader generated code.


## `Rule.exclude`
Expand Down
2 changes: 1 addition & 1 deletion src/content/configuration/optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ W> `moduleIds: total-size` has been removed in webpack 5.

`boolean = false` `string: 'natural' | 'named' | 'size' | 'total-size' | 'deterministic' `

Tells webpack which algorithm to use when choosing chunk ids. Setting `optimization.chunkIds` to `false` tells webpack that none of built-in algorithms should be used, as custom one can be provided via plugin. There are couple of defaults for `optimization.chunkIds`:
Tells webpack which algorithm to use when choosing chunk ids. Setting `optimization.chunkIds` to `false` tells webpack that none of built-in algorithms should be used, as custom one can be provided via plugin. There are a couple of defaults for `optimization.chunkIds`:

- Also if the environment is development then `optimization.chunkIds` is set to `'named'`, while in production it is set to `'deterministic'`
- if none of the above, `optimization.chunkIds` will be defaulted to `'natural'`
Expand Down