Skip to content

Commit d5740fa

Browse files
authored
docs: improve migration docs on injectClient, injectHot (#3598)
1 parent 28d89da commit d5740fa

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

migration-v4.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,51 @@ module.exports = {
443443
- Many CLI options were renamed in favor of the above change, please use `webpack serve --help` to get a list of them.
444444
- The `stdin` option was removed in favor of `--watch-options-stdin`.
445445
- `injectClient` and `injectHot` were removed in favor of manual setup entries.
446+
447+
- `injectClient: false` was replaced with `client: false`:
448+
449+
v3:
450+
451+
```js
452+
module.exports = {
453+
devServer: {
454+
injectClient: false,
455+
},
456+
};
457+
```
458+
459+
v4:
460+
461+
```js
462+
module.exports = {
463+
devServer: {
464+
client: false,
465+
},
466+
};
467+
```
468+
469+
- `injectHot: false` is now assumed when `hot: false` is used:
470+
471+
v3:
472+
473+
```js
474+
module.exports = {
475+
devServer: {
476+
injectHot: false,
477+
},
478+
};
479+
```
480+
481+
v4:
482+
483+
```js
484+
module.exports = {
485+
devServer: {
486+
hot: false,
487+
},
488+
};
489+
```
490+
446491
- The `sockWrite` public method was renamed to `sendMessage`.
447492
- The `profile` option was removed in favor [`ProfilingPlugin`](https://webpack.js.org/plugins/profiling-plugin/).
448493

0 commit comments

Comments
 (0)