fix(schema,vite): set type of watchers.chokidar and pass to vite

This commit is contained in:
Daniel Roe 2025-01-15 22:23:01 +00:00
parent 16d213bbdc
commit 39aba7333f
No known key found for this signature in database
GPG Key ID: CBC814C393D93268
4 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,7 @@
"@vue/compiler-sfc": "3.5.13", "@vue/compiler-sfc": "3.5.13",
"@vue/language-core": "2.2.0", "@vue/language-core": "2.2.0",
"c12": "2.0.1", "c12": "2.0.1",
"chokidar": "4.0.3",
"compatx": "0.1.8", "compatx": "0.1.8",
"esbuild-loader": "4.2.2", "esbuild-loader": "4.2.2",
"file-loader": "6.2.0", "file-loader": "6.2.0",

View File

@ -519,6 +519,7 @@ export default defineUntypedSchema({
/** /**
* Options to pass directly to `chokidar`. * Options to pass directly to `chokidar`.
* @see [chokidar](https://github.com/paulmillr/chokidar#api) * @see [chokidar](https://github.com/paulmillr/chokidar#api)
* @type {typeof import('chokidar').ChokidarOptions}
*/ */
chokidar: { chokidar: {
ignoreInitial: true, ignoreInitial: true,

View File

@ -88,6 +88,7 @@ export const bundle: NuxtBuilder['bundle'] = async (nuxt) => {
}, },
}, },
watch: { watch: {
chokidar: nuxt.options.watchers.chokidar,
exclude: nuxt.options.ignore, exclude: nuxt.options.ignore,
}, },
}, },

View File

@ -690,6 +690,9 @@ importers:
c12: c12:
specifier: 2.0.1 specifier: 2.0.1
version: 2.0.1(magicast@0.3.5) version: 2.0.1(magicast@0.3.5)
chokidar:
specifier: ^4.0.3
version: 4.0.3
compatx: compatx:
specifier: 0.1.8 specifier: 0.1.8
version: 0.1.8 version: 0.1.8