mirror of https://github.com/sveltejs/svelte
deconflict own name against globals - fixes #2175
parent
333b933837
commit
cb11aa78c8
@ -0,0 +1,10 @@
|
||||
<script>
|
||||
export let count;
|
||||
</script>
|
||||
|
||||
<span>{count}</span>
|
||||
|
||||
{#if count > 1}
|
||||
<!-- this shouldn't work — we have to use <svelte:self> instead -->
|
||||
<Countdown count={count - 1}/>
|
||||
{/if}
|
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
preserveIdentifiers: true,
|
||||
|
||||
error: 'Countdown is not defined'
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
import Countdown from './Countdown.svelte';
|
||||
</script>
|
||||
|
||||
<Countdown count={5}/>
|
Loading…
Reference in new issue