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

Function resolvePath

packages/vite/src/node/ssr/runtime/__tests__/utils.ts:128–131  ·  view source on GitHub ↗
(baseUrl: string, path: string)

Source from the content-addressed store, hash-verified

126}
127
128export function resolvePath(baseUrl: string, path: string): string {
129 const filename = fileURLToPath(baseUrl)
130 return resolve(dirname(filename), path).replace(/\\/g, '/')
131}

Callers 1

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected