Home / Function/ rewriteErrorTrace() — vue Function Reference

rewriteErrorTrace() — vue Function Reference

Architecture documentation for the rewriteErrorTrace() function in source-map-support.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  fde87ae5_e8fa_62fd_31f4_15b1131eb7e5["rewriteErrorTrace()"]
  14f9202e_1e3d_a247_6325_f9f31fa8ab03["createBundleRendererCreator()"]
  14f9202e_1e3d_a247_6325_f9f31fa8ab03 -->|calls| fde87ae5_e8fa_62fd_31f4_15b1131eb7e5
  ae8de32d_1019_4669_a0b8_175e12d10fa9["rewriteTraceLine()"]
  fde87ae5_e8fa_62fd_31f4_15b1131eb7e5 -->|calls| ae8de32d_1019_4669_a0b8_175e12d10fa9
  style fde87ae5_e8fa_62fd_31f4_15b1131eb7e5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/bundle-renderer/source-map-support.ts lines 13–27

export function rewriteErrorTrace(
  e: any,
  mapConsumers: {
    [key: string]: typeof SourceMapConsumer
  }
) {
  if (e && typeof e.stack === 'string') {
    e.stack = e.stack
      .split('\n')
      .map(line => {
        return rewriteTraceLine(line, mapConsumers)
      })
      .join('\n')
  }
}

Subdomains

Frequently Asked Questions

What does rewriteErrorTrace() do?
rewriteErrorTrace() is a function in the vue codebase.
What does rewriteErrorTrace() call?
rewriteErrorTrace() calls 1 function(s): rewriteTraceLine.
What calls rewriteErrorTrace()?
rewriteErrorTrace() is called by 1 function(s): createBundleRendererCreator.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free