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

Function getOriginalPosition

packages/vite/src/module-runner/sourcemap/decoder.ts:58–67  ·  view source on GitHub ↗
(
  map: DecodedMap,
  needle: Needle,
)

Source from the content-addressed store, hash-verified

56 }
57}
58export function getOriginalPosition(
59 map: DecodedMap,
60 needle: Needle,
61): OriginalMapping | null {
62 const result = originalPositionFor(map as any, needle)
63 if (result.column == null) {
64 return null
65 }
66 return result
67}

Callers 1

mapSourcePositionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected