Home / Function/ cleanErrorStack() — astro Function Reference

cleanErrorStack() — astro Function Reference

Architecture documentation for the cleanErrorStack() function in utils.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  0edfb3ef_2f1d_89c9_d757_12a3bf25180c["cleanErrorStack()"]
  6382d0b9_8ae6_1f6a_25b6_41a3e8e6de51["utils.ts"]
  0edfb3ef_2f1d_89c9_d757_12a3bf25180c -->|defined in| 6382d0b9_8ae6_1f6a_25b6_41a3e8e6de51
  e8f7378a_0237_7b9f_5d0b_f10ec6dbb971["collectInfoFromStacktrace()"]
  e8f7378a_0237_7b9f_5d0b_f10ec6dbb971 -->|calls| 0edfb3ef_2f1d_89c9_d757_12a3bf25180c
  style 0edfb3ef_2f1d_89c9_d757_12a3bf25180c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/errors/dev/utils.ts lines 221–226

function cleanErrorStack(stack: string) {
	return stack
		.split(/\n/)
		.map((l) => l.replace(/\/@fs\//g, '/'))
		.join('\n');
}

Domain

Subdomains

Frequently Asked Questions

What does cleanErrorStack() do?
cleanErrorStack() is a function in the astro codebase, defined in packages/astro/src/core/errors/dev/utils.ts.
Where is cleanErrorStack() defined?
cleanErrorStack() is defined in packages/astro/src/core/errors/dev/utils.ts at line 221.
What calls cleanErrorStack()?
cleanErrorStack() is called by 1 function(s): collectInfoFromStacktrace.

Analyze Your Own Codebase

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

Try Supermodel Free