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 committed 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
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

0 comments on commit c9b61c4

Please sign in to comment.