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

Function getPublicAssetFilename

packages/vite/src/node/plugins/asset.ts:379–384  ·  view source on GitHub ↗
(
  hash: string,
  config: ResolvedConfig,
)

Source from the content-addressed store, hash-verified

377}
378
379export function getPublicAssetFilename(
380 hash: string,
381 config: ResolvedConfig,
382): string | undefined {
383 return publicAssetUrlCache.get(config)?.get(hash)
384}
385
386// inner map: hash -> url
387export const publicAssetUrlCache: WeakMap<

Callers 1

generateBundleFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected