From c747a3f289183b3640a6d4a1410acb5eafd11129 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Tue, 6 Dec 2022 15:29:11 +0800 Subject: [PATCH] chore: fix test run in dev (#11214) --- packages/vite/src/node/watch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vite/src/node/watch.ts b/packages/vite/src/node/watch.ts index fa2a97fe1abff3..64c42a7b97dddc 100644 --- a/packages/vite/src/node/watch.ts +++ b/packages/vite/src/node/watch.ts @@ -1,4 +1,4 @@ -import { escapePath } from 'fast-glob' +import glob from 'fast-glob' import type { WatchOptions } from 'dep-types/chokidar' import type { ResolvedConfig } from '.' @@ -13,7 +13,7 @@ export function resolveChokidarOptions( '**/.git/**', '**/node_modules/**', '**/test-results/**', // Playwright - escapePath(config.cacheDir) + '/**', + glob.escapePath(config.cacheDir) + '/**', ...(Array.isArray(ignored) ? ignored : [ignored]), ], ignoreInitial: true,