Skip to content

Commit

Permalink
fix: don't resolve node: and internal: in the error stack
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jan 22, 2025
1 parent 572a9d8 commit 07331ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/utils/src/source-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ export function parseSingleV8Stack(raw: string): ParsedStack | null {
}

// normalize Windows path (\ -> /)
file = resolve(file)
file = file.startsWith('node:') || file.startsWith('internal:')
? file
: resolve(file)

if (method) {
method = method.replace(/__vite_ssr_import_\d+__\./g, '')
Expand Down

0 comments on commit 07331ba

Please sign in to comment.