Skip to content

Commit

Permalink
perf: cached fs utils (#15279)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Dec 12, 2023
1 parent bb07f60 commit c9b61c4
Show file tree
Hide file tree
Showing 10 changed files with 510 additions and 55 deletions.
2 changes: 2 additions & 0 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import {
normalizePath,
withTrailingSlash,
} from './utils'
import { getFsUtils } from './fsUtils'
import {
createPluginHookUtils,
getHookHandler,
Expand Down Expand Up @@ -633,6 +634,7 @@ export async function resolveConfig(
tryIndex: true,
...options,
idOnly: true,
fsUtils: getFsUtils(resolved),
}),
],
}))
Expand Down
Loading

0 comments on commit c9b61c4

Please sign in to comment.