mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-30 08:56:14 +01:00
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,2 @@
|
||||
<div>before</div>
|
||||
{{yield}}
|
@ -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…
Reference in New Issue
Block a user