From e8716af268a1618f796986d45111d15afed67cf4 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 15 Jan 2025 22:24:26 +0000 Subject: [PATCH] chore: also pass to `vite.server.watch` --- packages/vite/src/vite.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/vite.ts b/packages/vite/src/vite.ts index ff7ab2aa06..d5499d0b20 100644 --- a/packages/vite/src/vite.ts +++ b/packages/vite/src/vite.ts @@ -102,7 +102,7 @@ export const bundle: NuxtBuilder['bundle'] = async (nuxt) => { replace({ preventAssignment: true, ...globalThisReplacements }), ], server: { - watch: { ignored: isIgnored }, + watch: { ...nuxt.options.watchers.chokidar, ignored: [isIgnored, '**/node_modules'] }, fs: { allow: [...new Set(allowDirs)], },