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

Function unwrapId

packages/vite/src/shared/utils.ts:20–24  ·  packages/vite/src/shared/utils.ts::unwrapId
(id: string)

Source from the content-addressed store, hash-verified

18 * Undo {@link wrapId}'s `/@id/` and null byte replacements.
19 */
20export function unwrapId(id: string): string {
21 return id.startsWith(VALID_ID_PREFIX)
22 ? id.slice(VALID_ID_PREFIX.length).replaceAll(NULL_BYTE_PLACEHOLDER, class="st">'\0')
23 : id
24}
25
26const windowsSlashRE = /\\/g
27export function slash(p: string): string {

Callers 11

getModuleByUrlMethod · 0.90
utils.spec.tsFile · 0.90
ssrLoadModuleFunction · 0.90
fetchModuleFunction · 0.90
loadMethod · 0.90
preTransformRequestFunction · 0.90
transformMiddlewareFunction · 0.90
normalizeUrlFunction · 0.90
transformFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected