Skip to content

Commit 94b0857

Browse files
authored
refactor!: remove fs.cachedChecks option (#18493)
1 parent 5d6dc49 commit 94b0857

File tree

12 files changed

+69
-505
lines changed

12 files changed

+69
-505
lines changed

docs/config/server-options.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,6 @@ export default defineConfig({
329329

330330
Blocklist for sensitive files being restricted to be served by Vite dev server. This will have higher priority than [`server.fs.allow`](#server-fs-allow). [picomatch patterns](https://github.com/micromatch/picomatch#globbing-features) are supported.
331331

332-
## server.fs.cachedChecks
333-
334-
- **Type:** `boolean`
335-
- **Default:** `false`
336-
- **Experimental**
337-
338-
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.
339-
340332
## server.origin
341333

342334
- **Type:** `string`

docs/guide/migration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ There are other breaking changes which only affect few users.
6666
- [`commonjsOptions.strictRequires`](https://github.com/rollup/plugins/blob/master/packages/commonjs/README.md#strictrequires) is now `true` by default (was `'auto'` before).
6767
- [[#18243] chore(deps)!: migrate `fast-glob` to `tinyglobby`](https://github.com/vitejs/vite/pull/18243)
6868
- Range braces (`{01..03}``['01', '02', '03']`) and incremental braces (`{2..8..2}``['2', '4', '6', '8']`) are no longer supported in globs.
69+
- [[#18493] refactor!: remove fs.cachedChecks option](https://github.com/vitejs/vite/pull/18493)
70+
- This opt-in optimization was removed due to edge cases when writing a file in a cached folder and immediately importing it.
6971

7072
## Migration from v4
7173

0 commit comments

Comments
 (0)