Closed
Description
What happened?
Svelte 3 & 4 had $: console.log(...)
thing that worked wonders, svelte 5 removes $:
syntax, and replaces $: console.log(...)
with $inspect(...)
, with does not work with console ninja.
Version
all versions
Steps to reproduce (or sample repo)
- use svelte 5 starter project template.
- add
$inspect(...)
to any $state variable. - run project & change state.
- no inline output in vscode at
$inspect(...)
line.
When implementing support for this, be careful of how to handle '.with' feature:
$inspect(x); // default console.log
$inspect(x).with(console.trace);
$inspect(x, y).with(() => { debugger; });
Log output
N/A