Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dirty-planes-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

chore: exclude vite optimized deps from stack traces
6 changes: 5 additions & 1 deletion packages/svelte/src/internal/client/dev/tracing.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,20 @@ export function get_stack(label) {

for (let i = 0; i < lines.length; i++) {
const line = lines[i];
const posixified = line.replaceAll('\\', '/');

if (line === 'Error') {
continue;
}

if (line.includes('validate_each_keys')) {
return null;
}
if (line.includes('svelte/src/internal') || line.includes('svelte\\src\\internal')) {

if (posixified.includes('svelte/src/internal') || posixified.includes('node_modules/.vite')) {
continue;
}

new_lines.push(line);
}

Expand Down
Loading