Skip to content

Commit

Permalink
fix(watcher): watch fs specific root paths
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 25, 2021
1 parent a19c456 commit 64d2c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/index.ts
Expand Up @@ -256,7 +256,7 @@ export async function createServer(
const ws = createWebSocketServer(httpServer, config)

const { ignored = [], ...watchOptions } = serverConfig.watch || {}
const watcher = chokidar.watch(root, {
const watcher = chokidar.watch(path.resolve(root), {
ignored: ['**/node_modules/**', '**/.git/**', ...ignored],
ignoreInitial: true,
ignorePermissionErrors: true,
Expand Down

0 comments on commit 64d2c17

Please sign in to comment.