Skip to content
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
52 changes: 26 additions & 26 deletions .vale/Speciesism/AnimalIdioms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@ link: https://doi.org/10.1007/s43681-023-00380-w
level: warning
ignorecase: true
swap:
'kill two birds with one stone': accomplish two things at once
'killing two birds with one stone': accomplishing two things at once
'killed two birds with one stone': accomplished two things at once
'beat a dead horse': belabor the point
'beating a dead horse': belaboring the point
'flog a dead horse': belabor the point
'flogging a dead horse': belaboring the point
'bring home the bacon': bring home the results
'bringing home the bacon': bringing home the results
'brought home the bacon': brought home the results
'more than one way to skin a cat': more than one way to solve this
'many ways to skin a cat': many ways to approach this
'let the cat out of the bag': reveal the secret
'letting the cat out of the bag': revealing the secret
'open a can of worms': create a complicated situation
'opening a can of worms': creating a complicated situation
'opened a can of worms': created a complicated situation
'wild goose chase': pointless pursuit
'take the bull by the horns': face the challenge head-on
'taking the bull by the horns': facing the challenge head-on
'took the bull by the horns': faced the challenge head-on
'like shooting fish in a barrel': extremely easy
'straight from the horse''s mouth': directly from the source
'from the horse''s mouth': from a reliable source
'whack-a-mole': recurring problem
'whack a mole': recurring problem
"kill two birds with one stone": accomplish two things at once
"killing two birds with one stone": accomplishing two things at once
"killed two birds with one stone": accomplished two things at once
"beat a dead horse": belabor the point
"beating a dead horse": belaboring the point
"flog a dead horse": belabor the point
"flogging a dead horse": belaboring the point
"bring home the bacon": bring home the results
"bringing home the bacon": bringing home the results
"brought home the bacon": brought home the results
"more than one way to skin a cat": more than one way to solve this
"many ways to skin a cat": many ways to approach this
"let the cat out of the bag": reveal the secret
"letting the cat out of the bag": revealing the secret
"open a can of worms": create a complicated situation
"opening a can of worms": creating a complicated situation
"opened a can of worms": created a complicated situation
"wild goose chase": pointless pursuit
"take the bull by the horns": face the challenge head-on
"taking the bull by the horns": facing the challenge head-on
"took the bull by the horns": faced the challenge head-on
"like shooting fish in a barrel": extremely easy
"straight from the horse's mouth": directly from the source
"from the horse's mouth": from a reliable source
"whack-a-mole": recurring problem
"whack a mole": recurring problem
16 changes: 8 additions & 8 deletions .vale/Speciesism/AnimalMetaphors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ link: https://doi.org/10.1007/s43681-023-00380-w
level: warning
ignorecase: true
swap:
'guinea pig': test subject
'sacred cow': unquestioned belief
'sacred cows': unquestioned beliefs
'scapegoat(?:ed|ing)?': wrongly blamed
'dog-eat-dog': ruthlessly competitive
'dog eat dog': ruthlessly competitive
'rat race': competitive grind
'red herring': false lead
"guinea pig": test subject
"sacred cow": unquestioned belief
"sacred cows": unquestioned beliefs
"scapegoat(?:ed|ing)?": wrongly blamed
"dog-eat-dog": ruthlessly competitive
"dog eat dog": ruthlessly competitive
"rat race": competitive grind
"red herring": false lead
16 changes: 8 additions & 8 deletions .vale/Speciesism/TechTerminology.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ message: "Consider using '%s' instead of '%s'. This technical term has a more pr
level: suggestion
ignorecase: true
swap:
'canary deployment': progressive rollout
'canary release': progressive rollout
'canary test(?:ing)?': incremental testing
'monkey[- ]?patch(?:ed|ing)?': runtime patch
'duck[- ]?typ(?:ed|ing)': structural typing
'dogfood(?:ing)?': self-hosting
'eat(?:ing)? (?:your|our|their) own dogfood': self-testing
'rubber duck(?:ing)? debugging': talk-through debugging
"canary deployment": progressive rollout
"canary release": progressive rollout
"canary test(?:ing)?": incremental testing
"monkey[- ]?patch(?:ed|ing)?": runtime patch
"duck[- ]?typ(?:ed|ing)": structural typing
"dogfood(?:ing)?": self-hosting
"eat(?:ing)? (?:your|our|their) own dogfood": self-testing
"rubber duck(?:ing)? debugging": talk-through debugging
4 changes: 3 additions & 1 deletion src/content/configuration/externals.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,9 @@ import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "node:module";
const __webpack_modules__ = {
// ...
/***/ 2613: /***/ (module) => {
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream");
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(
"stream",
);

/***/
},
Expand Down
22 changes: 15 additions & 7 deletions src/content/configuration/output.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -213,24 +213,32 @@
};
```

## output.chunkLoadingGlobal
### output.chunkLoadingGlobal

`string = 'webpackChunkwebpack'`

The global variable is used by webpack for loading chunks.
The global variable used by webpack for loading chunks asynchronously (e.g. via code splitting and dynamic `import()`).

**webpack.config.js**
**Why does this matter?**

```javascript
When multiple independent webpack builds are loaded in the same browser context, they all default to the same global variable name. This causes conflicts and can produce errors like:
```

Check failure on line 225 in src/content/configuration/output.mdx

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, lts/*)

Insert `⏎`
TypeError: webpack_modules[moduleId] is not a function
```

To avoid this, assign a unique `chunkLoadingGlobal` to each build:

**webpack.config.js**

Check failure on line 231 in src/content/configuration/output.mdx

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, lts/*)

Insert `⏎`
```js
export default {
// ...
output: {
// ...
chunkLoadingGlobal: "myCustomFunc",
chunkLoadingGlobal: "myAppWebpackChunks",
},
};
```

T> If you have multiple entry points within a **single** webpack config, they already share the same runtime — no conflict will occur. You only need a unique `chunkLoadingGlobal` when running completely **separate** webpack instances in the same browser context.

## output.chunkLoading

`false` `string: 'jsonp' | 'import-scripts' | 'require' | 'async-node' | 'import' | <any string>`
Expand Down
Loading