Skip to content

Commit

Permalink
fix(build): fix chokidar.ignore override (#6317)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZxBing0066 committed Dec 30, 2021
1 parent 8bdb184 commit aa47549
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vite/src/node/build.ts
Expand Up @@ -549,14 +549,14 @@ async function doBuild(
watch: {
...watcherOptions,
chokidar: {
ignoreInitial: true,
ignorePermissionErrors: true,
...watcherOptions.chokidar,
ignored: [
'**/node_modules/**',
'**/.git/**',
...(watcherOptions?.chokidar?.ignored || [])
],
ignoreInitial: true,
ignorePermissionErrors: true,
...watcherOptions.chokidar
]
}
}
})
Expand Down

0 comments on commit aa47549

Please sign in to comment.