Skip to content

Commit b2914df

Browse files
committed
fix: update build mode check to only consider child compilers' watching state
1 parent 2d6d746 commit b2914df

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
@@ -3603,8 +3603,7 @@ class Server {
36033603
// `listen()` so the build can finish and the process can exit normally —
36043604
// the user is not in control of the plugin lifecycle here, so we stay
36053605
// silent rather than logging a warning.
3606-
const isBuildMode = () =>
3607-
childCompilers.every((child) => !child.watching && !child.options.watch);
3606+
const isBuildMode = () => childCompilers.every((child) => !child.watching);
36083607

36093608
/**
36103609
* @returns {Promise<void>} promise

0 commit comments

Comments
 (0)