You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
用于限制 Vite 开发服务器提供敏感文件的黑名单。这会比 [`server.fs.allow`](#server-fs-allow) 选项的优先级更高。同时还支持 [picomatch 模式](https://github.com/micromatch/picomatch#globbing-features)。
328
330
331
+
## server.fs.cachedChecks
332
+
333
+
-**类型:**`boolean`
334
+
-**默认:**`false`
335
+
-**实验性**
336
+
337
+
该选项可以缓存访问过的目录的文件名,从而避免重复的文件系统操作。尤其在 Windows 系统中,这个选项可能会带来性能提升。但由于存在一些边缘情况,比如在一个已缓存的文件夹中写入文件并立即导入它,所以这个选项默认是关闭的。
338
+
339
+
Caches filenames of accessed directories to avoid repeated filesystem operations. Particularly in Windows, this could result in a performance boost. It is disabled by default due to edge cases when writing a file in a cached folder and immediately importing it.
0 commit comments