mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
We need to split the cli crate up to reduce dependencies, the current cli crate is pulling in `oxc_prettier`, which is redundant for the linter.
23 lines
463 B
Svelte
23 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>
|