Skip to content

Commit

Permalink
refactor!: remove fs.cachedChecks option (#18493)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Oct 31, 2024
1 parent 5d6dc49 commit 94b0857
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 505 deletions.
8 changes: 0 additions & 8 deletions docs/config/server-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,6 @@ export default defineConfig({

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.

## server.fs.cachedChecks

- **Type:** `boolean`
- **Default:** `false`
- **Experimental**

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.

## server.origin

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

## Migration from v4

Expand Down
Loading

0 comments on commit 94b0857

Please sign in to comment.