8000 nitpicks · webpack/webpack@a8b00f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit a8b00f8

Browse files
committed
nitpicks
1 parent 4a1d4e6 commit a8b00f8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/WebpackOptionsApply.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class WebpackOptionsApply extends OptionsApply {
266266
: require("./hmr/lazyCompilationBackend")({
267267
...lazyOptions.backend,
268268
client:
269-
lazyOptions.backend.client ||
269+
(lazyOptions.backend && lazyOptions.backend.client) ||
270270
require.resolve(
271271
`../hot/lazy-compilation-${
272272
options.externalsPresets.node ? "node" : "web"

lib/hmr/lazyCompilationBackend.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ module.exports = options => (compiler, callback) => {
9191
});
9292
if (isClosing) socket.destroy();
9393
});
94-
server.on("clientError", e => logger.warn(e));
94+
server.on("clientError", e => {
95+
if (e.message !== "Server is disposing") logger.warn(e);
96+
});
9597
server.on("listening", err => {
9698
if (err) return callback(err);
9799
const addr = server.address();

0 commit comments

Comments
 (0)
0