Update packages/svelte/src/internal/client/dev/inspect.js

pull/17026/head
Rich Harris 3 days ago committed by GitHub
parent d875590d9c
commit ce9f7b8aff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -35,7 +35,15 @@ export function inspect(get_value, inspector, show_stack = false) {
if (!initial) {
const stack = get_stack('$inspect(...)');
// eslint-disable-next-line no-console
if (stack) console.log(stack);
if (stack) {
// eslint-disable-next-line no-console
console.groupCollapsed('stack trace');
// eslint-disable-next-line no-console
console.log(stack);
// eslint-disable-next-line no-console
console.groupEnd();
}
}
} else {
inspector(initial ? 'init' : 'update', ...snap);

Loading…
Cancel
Save