Merge pull request #527 from sveltejs/gh-524

fix for #524
pull/7738/head
Rich Harris 9 years ago committed by GitHub
commit 5384583c19

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