mirror of https://github.com/sveltejs/svelte
parent
bc0f381b34
commit
ed39c85f5d
@ -0,0 +1,3 @@
|
|||||||
|
export default function sanitize(name) {
|
||||||
|
return name.replace(/[^a-zA-Z]+/g, '_').replace(/^_/, '').replace(/_$/, '');
|
||||||
|
}
|
@ -1,5 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import Foo from './Foo.html';
|
import Foo from './Foo.html';
|
||||||
|
|
||||||
|
export let Bar = Foo;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:component this={Foo}/>
|
<svelte:component this={Bar}/>
|
Loading…
Reference in new issue