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

Function getDiscoveredBrowserHash

packages/vite/src/node/optimizer/optimizer.ts:546–554  ·  view source on GitHub ↗
(
    hash: string,
    deps: Record<string, string>,
    missing: Record<string, string>,
  )

Source from the content-addressed store, hash-verified

544 }
545
546 function getDiscoveredBrowserHash(
547 hash: string,
548 deps: Record<string, string>,
549 missing: Record<string, string>,
550 ) {
551 return getHash(
552 hash + JSON.stringify(deps) + JSON.stringify(missing) + sessionTimestamp,
553 )
554 }
555
556 function registerMissingImport(
557 id: string,

Callers 1

addMissingDepFunction · 0.85

Calls 1

getHashFunction · 0.90

Tested by

no test coverage detected