This commit is contained in:
Copilot 2026-03-12 15:37:54 +08:00 committed by GitHub
commit a815fc0d8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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