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

Function getDepHash

packages/vite/src/node/optimizer/index.ts:1353–1366  ·  view source on GitHub ↗
(environment: Environment)

Source from the content-addressed store, hash-verified

1351}
1352
1353function getDepHash(environment: Environment): {
1354 lockfileHash: string
1355 configHash: string
1356 hash: string
1357} {
1358 const lockfileHash = getLockfileHash(environment)
1359 const configHash = getConfigHash(environment)
1360 const hash = getHash(lockfileHash + configHash)
1361 return {
1362 hash,
1363 lockfileHash,
1364 configHash,
1365 }
1366}
1367
1368function getOptimizedBrowserHash(
1369 hash: string,

Callers 2

toDiscoveredDependenciesFunction · 0.85

Calls 3

getHashFunction · 0.90
getLockfileHashFunction · 0.85
getConfigHashFunction · 0.85

Tested by

no test coverage detected