Merge pull request #2117 from sveltejs/gh-2110

doh
pull/2141/head
Rich Harris 6 years ago committed by GitHub
commit 18a98c0f62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -205,8 +205,8 @@ export default class ElementWrapper extends Wrapper {
block.parent.addDependencies(block.dependencies);
// appalling hack
block.wrappers.splice(block.wrappers.indexOf(this), 1);
this.slot_block.wrappers.push(this);
block.parent.wrappers.splice(block.parent.wrappers.indexOf(this), 1);
block.wrappers.push(this);
}
}

@ -2,6 +2,7 @@ import Renderer from '../Renderer';
import Block from '../Block';
import Node from '../../nodes/shared/Node';
import Tag from './shared/Tag';
import Wrapper from './shared/Wrapper';
export default class MustacheTagWrapper extends Tag {
var = 'text';

@ -0,0 +1,7 @@
export default {
preserveIdentifiers: true,
html: `
<span slot="name">Hello world</span>
`
};

@ -0,0 +1,9 @@
<script>
import Nested from './Nested.svelte';
let name = 'world';
</script>
<Nested>
<span slot="name">Hello {name}</span>
</Nested>
Loading…
Cancel
Save