1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

Update chokidar params to use polling to avoid problems with file watching

This commit is contained in:
Andrew Kingston 2022-08-30 19:23:34 +01:00
parent c192ac534c
commit bfc3c840ca

View file

@ -11,7 +11,12 @@ export function watch() {
chokidar
.watch(watchPath, {
ignored: "**/node_modules",
awaitWriteFinish: true,
awaitWriteFinish: {
pollInterval: 100,
stabilityThreshold: 250,
},
usePolling: true,
interval: 250,
})
.on("all", async (event: string, path: string) => {
// Sanity checks