Skip to content

Commit c9b61c4

Browse files
authored
perf: cached fs utils (#15279)
1 parent bb07f60 commit c9b61c4

File tree

10 files changed

+510
-55
lines changed

10 files changed

+510
-55
lines changed

packages/vite/src/node/config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import {
4141
normalizePath,
4242
withTrailingSlash,
4343
} from './utils'
44+
import { getFsUtils } from './fsUtils'
4445
import {
4546
createPluginHookUtils,
4647
getHookHandler,
@@ -633,6 +634,7 @@ export async function resolveConfig(
633634
tryIndex: true,
634635
...options,
635636
idOnly: true,
637+
fsUtils: getFsUtils(resolved),
636638
}),
637639
],
638640
}))

0 commit comments

Comments
 (0)