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

Function getTempSuffix

packages/vite/src/node/optimizer/index.ts:970–979  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

968}
969
970function getTempSuffix() {
971 return (
972 '_temp_' +
973 getHash(
974 `${process.pid}:${Date.now().toString()}:${Math.random()
975 .toString(16)
976 .slice(2)}`,
977 )
978 )
979}
980
981function getDepsCacheDirPrefix(environment: Environment): string {
982 return normalizePath(path.resolve(environment.config.cacheDir, 'deps'))

Callers 2

runOptimizeDepsFunction · 0.85

Calls 1

getHashFunction · 0.90

Tested by

no test coverage detected