File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -214,11 +214,11 @@ export default defineConfig({
214214
215215- ** 型:** ` object| null `
216216
217- [ chokidar] ( https://github.com/paulmillr/chokidar#getting-started ) に渡すファイルシステムウォッチャーのオプションです。 ` ignored ` オプションが渡された場合、Vite は文字列を [ picomatch のパターン ] ( https://github.com/micromatch/picomatch#globbing-features ) として自動的に変換します 。
217+ [ chokidar] ( https://github.com/paulmillr/chokidar/tree/3.6.0#api ) に渡すファイルシステムウォッチャーのオプションです 。
218218
219219Vite サーバーのウォッチャーはデフォルトで ` root ` を監視し、` .git/ ` 、` node_modules/ ` 、および Vite の ` cacheDir ` と ` build.outDir ` ディレクトリーをスキップします。監視されているファイルを更新すると Vite は HMR を適用し、必要な場合にのみページを更新します。
220220
221- ` null ` に設定すると、ファイルは監視されません。` server.watcher ` はいかなるファイルも監視せず 、` add ` を呼び出しても何も起こりません 。
221+ ` null ` に設定すると、ファイルは監視されません。` server.watcher ` は互換性のあるイベントエミッターを提供しますが 、` add ` または ` unwatch ` を呼び出しても効果はありません 。
222222
223223::: warning ` node_modules ` 内のファイルの監視
224224
@@ -235,7 +235,7 @@ Vite を WSL2 で実行している際、ファイルシステム監視はファ
235235- ** 推奨** : ファイルを編集するのに WSL2 アプリケーションを使用します。
236236 - プロジェクトフォルダーを Windows ファイルシステムの外へ移動させることも推奨されます。WSL2 から Windows ファイルシステムへアクセスするのは遅いです。このオーバーヘッドを取り除くことでパフォーマンスが向上します。
237237- ` { usePolling: true } ` を設定する。
238- - [ ` usePolling ` は CPU 使用率が高くなること] ( https://github.com/paulmillr/chokidar#performance ) に注意してください。
238+ - [ ` usePolling ` は CPU 使用率が高くなること] ( https://github.com/paulmillr/chokidar/tree/3.6.0 #performance ) に注意してください。
239239
240240:::
241241
Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ interface ViteDevServer {
110110 httpServer: http.Server | null
111111 /**
112112 * chokidar watcher のインスタンス。 ` config .server .watch ` が ` null ` に
113- * 設定されている場合、いかなるファイルも監視せず、 ` add ` を呼び出しても何も起こりません。
114- * https://github.com/paulmillr/chokidar#getting-started
113+ * 設定されている場合、いかなるファイルも監視せず、 ` add ` や ` unwatch ` を呼び出しても何も起こりません。
114+ * https://github.com/paulmillr/chokidar/tree/3.6.0#api
115115 */
116116 watcher: FSWatcher
117117 /**
You can’t perform that action at this time.
0 commit comments