We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37bc7ee commit af9ed4cCopy full SHA for af9ed4c
packages/core/src/cli/restart.ts
@@ -1,5 +1,4 @@
1
import path from 'node:path';
2
-import chokidar from 'chokidar';
3
import { color, debounce, isTTY } from '../utils/helper';
4
import { logger } from '../utils/logger';
5
@@ -11,11 +10,12 @@ export async function watchFilesForRestart(
11
10
return;
12
}
13
+ const chokidar = await import('chokidar');
14
+
15
const watcher = chokidar.watch(files, {
16
ignoreInitial: true,
17
// If watching fails due to read permissions, the errors will be suppressed silently.
18
ignorePermissionErrors: true,
- ignored: ['**/node_modules/**', '**/.git/**', '**/.DS_Store/**'],
19
});
20
21
const callback = debounce(
0 commit comments