rewriteTraceLine() — vue Function Reference
Architecture documentation for the rewriteTraceLine() function in source-map-support.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD ae8de32d_1019_4669_a0b8_175e12d10fa9["rewriteTraceLine()"] fde87ae5_e8fa_62fd_31f4_15b1131eb7e5["rewriteErrorTrace()"] fde87ae5_e8fa_62fd_31f4_15b1131eb7e5 -->|calls| ae8de32d_1019_4669_a0b8_175e12d10fa9 style ae8de32d_1019_4669_a0b8_175e12d10fa9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/server-renderer/src/bundle-renderer/source-map-support.ts lines 29–55
function rewriteTraceLine(
trace: string,
mapConsumers: {
[key: string]: typeof SourceMapConsumer
}
) {
const m = trace.match(filenameRE)
const map = m && mapConsumers[m[1]]
if (m != null && map) {
const originalPosition = map.originalPositionFor({
line: Number(m[2]),
column: Number(m[3])
})
if (originalPosition.source != null) {
const { source, line, column } = originalPosition
const mappedPosition = `(${source.replace(
/^webpack:\/\/\//,
''
)}:${String(line)}:${String(column)})`
return trace.replace(filenameRE, mappedPosition)
} else {
return trace
}
} else {
return trace
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does rewriteTraceLine() do?
rewriteTraceLine() is a function in the vue codebase.
What calls rewriteTraceLine()?
rewriteTraceLine() is called by 1 function(s): rewriteErrorTrace.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free