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)], },