diff --git a/back/loaders/deps.ts b/back/loaders/deps.ts index cb2ed171..baa69185 100644 --- a/back/loaders/deps.ts +++ b/back/loaders/deps.ts @@ -65,7 +65,11 @@ export default async (src: string = 'deps') => { const source = path.join(config.rootPath, src); const watcher = chokidar.watch(source, { - ignored: /(^|[\/\\])\../, // ignore dotfiles + ignored: [ + /(^|[\/\\])\../, // ignore dotfiles + /(^|[\/\\])node_modules([\/\\]|$)/, // ignore node_modules + /(^|[\/\\])\.git([\/\\]|$)/, // ignore .git + ], persistent: true, });