diff --git a/src/api/dev.ts b/src/api/dev.ts index f7fcc3c9b..b555510a5 100644 --- a/src/api/dev.ts +++ b/src/api/dev.ts @@ -506,9 +506,7 @@ function watch_dir( watch = new CheapWatch({ dir, filter, debounce: 50 }); - watch.on('+', ({ isNew }: { isNew: boolean }) => { - if (isNew) callback(); - }); + watch.on('+', callback); watch.on('-', callback);