Files
oxc-project__oxc/apps/oxlint/fixtures/cli/svelte/debugger.svelte
Sysix 065a358c90 test(oxlint): move non lsp fixtures to fixtures/cli (#20044)
Now there are only two folders in `apps/oxlint/fixtures`.
We can later create another directory for both integrations (like config walker).
2026-03-06 12:12:54 +00:00

24 lines
463 B
Svelte

<script>
debugger;
export let title;
export let person;
// this will update `document.title` whenever
// the `title` prop changes
$: document.title = title;
$: {
console.log(`multiple statements can be combined`);
console.log(`the current title is ${title}`);
}
// this will update `name` when 'person' changes
$: ({ name } = person);
// don't do this. it will run before the previous line
let name2 = name;
</script>
<h1>Hello {name}!</h1>