From 4249cb97626d0274cdd3bb047f3ab496b25555e8 Mon Sep 17 00:00:00 2001 From: sapphi-red Date: Sun, 10 Jul 2022 00:55:11 +0900 Subject: [PATCH] fix: use change --- packages/vite/src/node/watcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vite/src/node/watcher.ts b/packages/vite/src/node/watcher.ts index e111bb298697c8..0baecd9383bb0d 100644 --- a/packages/vite/src/node/watcher.ts +++ b/packages/vite/src/node/watcher.ts @@ -44,8 +44,8 @@ export const detectWhetherChokidarWithDefaultOptionWorks = ( disableGlobbing: true, ignoreInitial: true }) - // add works with WSL2, but edit does not work - w.on('edit', () => { + // add works with WSL2, but change does not work + w.on('change', () => { resolveWithCleanup(true) }) w.on('error', () => {