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

Function ensureFileExt

packages/vite/src/node/plugins/css.ts:769–773  ·  view source on GitHub ↗
(name: string, ext: string)

Source from the content-addressed store, hash-verified

767 }
768
769 function ensureFileExt(name: string, ext: string) {
770 return normalizePath(
771 path.format({ ...path.parse(name), base: undefined, ext }),
772 )
773 }
774
775 let s: MagicString | undefined
776 const urlEmitTasks: Array<{

Callers 1

renderChunkFunction · 0.85

Calls 2

normalizePathFunction · 0.90
parseMethod · 0.80

Tested by

no test coverage detected