Skip to content

Commit 5be7251

Browse files
committed
fix: update build mode check to only consider child compilers' watching state
1 parent 495e47f commit 5be7251

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/Server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3629,8 +3629,7 @@ class Server {
36293629
// `listen()` so the build can finish and the process can exit normally —
36303630
// the user is not in control of the plugin lifecycle here, so we stay
36313631
// silent rather than logging a warning.
3632-
const isBuildMode = () =>
3633-
childCompilers.every((child) => !child.watching && !child.options.watch);
3632+
const isBuildMode = () => childCompilers.every((child) => !child.watching);
36343633

36353634
/**
36363635
* @returns {Promise<void>} promise

0 commit comments

Comments
 (0)