chore: also pass to vite.server.watch

This commit is contained in:
Daniel Roe 2025-01-15 22:24:26 +00:00
parent 39aba7333f
commit e8716af268
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -102,7 +102,7 @@ export const bundle: NuxtBuilder['bundle'] = async (nuxt) => {
replace({ preventAssignment: true, ...globalThisReplacements }), replace({ preventAssignment: true, ...globalThisReplacements }),
], ],
server: { server: {
watch: { ignored: isIgnored }, watch: { ...nuxt.options.watchers.chokidar, ignored: [isIgnored, '**/node_modules'] },
fs: { fs: {
allow: [...new Set(allowDirs)], allow: [...new Set(allowDirs)],
}, },