0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 08:56:14 +01:00

Merge pull request #527 from sveltejs/gh-524

fix for #524
This commit is contained in:
Rich Harris 2017-04-25 17:22:12 -04:00 committed by GitHub
commit ae75bef3c9
4 changed files with 20 additions and 1 deletions

View File

@ -264,7 +264,7 @@ function preprocessChildren ( generator, block, state, node, isTopLevel ) {
if ( lastChild ) {
lastChild.next = child;
lastChild.needsAnchor = !child._state.name;
lastChild.needsAnchor = !child._state || !child._state.name;
}
lastChild = child;

View File

@ -0,0 +1,2 @@
<div>before</div>
{{yield}}

View File

@ -0,0 +1,6 @@
export default {
html: `
<div>before</div>
test
`
};

View File

@ -0,0 +1,11 @@
<Foo>test</Foo>
<script>
import Foo from './Foo.html';
export default {
components: {
Foo
}
};
</script>