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

Function optimizedDepInfoFromFile

packages/vite/src/node/optimizer/index.ts:1385–1390  ·  view source on GitHub ↗
(
  metadata: DepOptimizationMetadata,
  file: string,
)

Source from the content-addressed store, hash-verified

1383}
1384
1385export function optimizedDepInfoFromFile(
1386 metadata: DepOptimizationMetadata,
1387 file: string,
1388): OptimizedDepInfo | undefined {
1389 return metadata.depInfoList.find((depInfo) => depInfo.file === file)
1390}
1391
1392function findOptimizedDepInfoInRecord(
1393 dependenciesInfo: Record<string, OptimizedDepInfo>,

Callers 4

transformFunction · 0.90
handlerFunction · 0.90
loadFunction · 0.90
optimizedDepNeedsInteropFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected