Skip to content

Commit

Permalink
fix: use change
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Jul 9, 2022
1 parent 8725763 commit 4249cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/watcher.ts
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 4249cb9

Please sign in to comment.