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

Function getCssBundleName

packages/vite/src/node/plugins/css.ts:504–517  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

502 }
503
504 function getCssBundleName() {
505 const cached = cssBundleNameCache.get(config)
506 if (cached) return cached
507
508 const cssBundleName = config.build.lib
509 ? resolveLibCssFilename(
510 config.build.lib,
511 config.root,
512 config.packageCache,
513 )
514 : defaultCssBundleName
515 cssBundleNameCache.set(config, cssBundleName)
516 return cssBundleName
517 }
518
519 return {
520 name: 'vite:css-post',

Callers 2

renderChunkFunction · 0.85
generateBundleFunction · 0.85

Calls 3

resolveLibCssFilenameFunction · 0.85
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected