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

Function orderedDependencies

packages/vite/src/node/optimizer/scan.ts:306–311  ·  view source on GitHub ↗
(deps: Record<string, string>)

Source from the content-addressed store, hash-verified

304}
305
306function orderedDependencies(deps: Record<string, string>) {
307 const depsList = Object.entries(deps)
308 // Ensure the same browserHash for the same set of dependencies
309 depsList.sort((a, b) => a[0].localeCompare(b[0]))
310 return Object.fromEntries(depsList)
311}
312
313async function globEntries(
314 patterns: string | string[],

Callers 1

scanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected