@nuxt/docs-nightly 5.0.0-29655957.274d46bb → 5.0.0-29656176.781598bf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -394,10 +394,17 @@ performance in large projects or on Windows platforms.
|
|
|
394
394
|
|
|
395
395
|
You can also set this to `chokidar` to watch all files in your source directory.
|
|
396
396
|
|
|
397
|
+
Set to `'builder'` to reuse the active builder's own file watcher (for example,
|
|
398
|
+
Vite's `server.watcher`) instead of starting a second one. This reduces the
|
|
399
|
+
number of file watchers active in dev mode and becomes the default when
|
|
400
|
+
`future.compatibilityVersion` is `5`. If the active builder does not implement
|
|
401
|
+
its own watcher (currently webpack and rspack), Nuxt logs a warning and falls
|
|
402
|
+
back to its default selection.
|
|
403
|
+
|
|
397
404
|
```ts twoslash [nuxt.config.ts]
|
|
398
405
|
export default defineNuxtConfig({
|
|
399
406
|
experimental: {
|
|
400
|
-
watcher: 'chokidar-granular', // 'chokidar' or '
|
|
407
|
+
watcher: 'chokidar-granular', // 'chokidar', 'parcel' or 'builder' are also options
|
|
401
408
|
},
|
|
402
409
|
})
|
|
403
410
|
```
|