MCPcopy
hub / github.com/vitejs/vite / bundleAndLoadConfigFile

Function bundleAndLoadConfigFile

packages/vite/src/node/config.ts:2404–2419  ·  view source on GitHub ↗
(resolvedPath: string)

Source from the content-addressed store, hash-verified

2402}
2403
2404async function bundleAndLoadConfigFile(resolvedPath: string) {
2405 const isESM =
2406 typeof process.versions.deno === 'string' || isFilePathESM(resolvedPath)
2407
2408 const bundled = await bundleConfigFile(resolvedPath, isESM)
2409 const userConfig = await loadConfigFromBundledFile(
2410 resolvedPath,
2411 bundled.code,
2412 isESM,
2413 )
2414
2415 return {
2416 configExport: userConfig,
2417 dependencies: bundled.dependencies,
2418 }
2419}
2420
2421async function bundleConfigFile(
2422 fileName: string,

Callers

nothing calls this directly

Calls 3

isFilePathESMFunction · 0.90
bundleConfigFileFunction · 0.85

Tested by

no test coverage detected