Skip to content

Commit 5531b94

Browse files
authored
fix: await watcher close before restart (#4734)
1 parent 0d4ab78 commit 5531b94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ export async function watchFilesForRestart(
390390

391391
const callback = debounce(
392392
async (filePath) => {
393-
watcher.close();
393+
await watcher.close();
394394
if (isBuildWatch) {
395395
await restartBuild({ filePath });
396396
} else {

0 commit comments

Comments
 (0)