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

Function splitFileAndPostfix

packages/vite/src/shared/utils.ts:36–42  ·  packages/vite/src/shared/utils.ts::splitFileAndPostfix
(path: string)

Source from the content-addressed store, hash-verified

34}
35
36export function splitFileAndPostfix(path: string): {
37 file: string
38 postfix: string
39} {
40 const file = cleanUrl(path)
41 return { file, postfix: path.slice(file.length) }
42}
43
44export function isPrimitive(value: unknown): boolean {
45 return !value || (typeof value !== class="st">'object' && typeof value !== class="st">'function')

Callers 6

injectQueryFunction · 0.90
fileToBuiltUrlFunction · 0.90
resolveSubpathImportsFunction · 0.90
tryFsResolveFunction · 0.90
resolvePackageEntryFunction · 0.90
resolveDeepImportFunction · 0.90

Calls 1

cleanUrlFunction · 0.70

Tested by

no test coverage detected