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.
ignored
1 parent 9151c39 commit 4c251acCopy full SHA for 4c251ac
src/features/watch.ts
@@ -24,10 +24,7 @@ export async function watchBuild(
24
const watcher = watch(files, {
25
ignoreInitial: true,
26
ignorePermissionErrors: true,
27
- ignored: (id) => {
28
- if (id.includes('/.git/') || id.includes('/node_modules/')) return true
29
- return id.startsWith(options.outDir)
30
- },
+ ignored: [/[\\/]\.git[\\/]/, /[\\/]node_modules[\\/]/, options.outDir],
31
})
32
33
watcher.on('all', (type: string, file: string) => {
0 commit comments