Skip to content

Commit 8589b7d

Browse files
shuuji3jay-es
andauthored
feat!: update to chokidar v4 (#1669)
* feat!: update to chokidar v4 resolve #1668 vitejs/vite@192d555 の反映です。 * Update guide/api-javascript.md Co-authored-by: Jun Shindo <[email protected]> --------- Co-authored-by: Jun Shindo <[email protected]>
1 parent 03a9a62 commit 8589b7d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/server-options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ export default defineConfig({
205205

206206
- **型:** `object| null`
207207

208-
[chokidar](https://github.com/paulmillr/chokidar#api) に渡すファイルシステムウォッチャーのオプションです。
208+
[chokidar](https://github.com/paulmillr/chokidar#getting-started) に渡すファイルシステムウォッチャーのオプションです`ignored` オプションが渡された場合、Vite は文字列を [picomatch のパターン](https://github.com/micromatch/picomatch#globbing-features)として自動的に変換します
209209

210210
Vite サーバーのウォッチャーはデフォルトで `root` を監視し、`.git/``node_modules/`、および Vite の `cacheDir``build.outDir` ディレクトリーをスキップします。監視されているファイルを更新すると Vite は HMR を適用し、必要な場合にのみページを更新します。
211211

212-
`null` に設定すると、ファイルは監視されません。`server.watcher` は互換性のあるイベントエミッターを返しますが`add``unwatch` を呼び出しても何も起こりません。
212+
`null` に設定すると、ファイルは監視されません。`server.watcher` はいかなるファイルも監視せず`add` を呼び出しても何も起こりません。
213213

214214
::: warning `node_modules` 内のファイルの監視
215215

guide/api-javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ interface ViteDevServer {
110110
httpServer: http.Server | null
111111
/**
112112
* chokidar watcher のインスタンス。`config.server.watch``null`
113-
* 設定されている場合、何もしないイベントエミッターを返します
114-
* https://github.com/paulmillr/chokidar#api
113+
* 設定されている場合、いかなるファイルも監視せず、`add` を呼び出しても何も起こりません
114+
* https://github.com/paulmillr/chokidar#getting-started
115115
*/
116116
watcher: FSWatcher
117117
/**

0 commit comments

Comments
 (0)