Merge pull request #527 from sveltejs/gh-524

fix for #524
pull/533/head
Rich Harris 8 years ago committed by GitHub
commit ae75bef3c9

@ -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;

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

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