|
|
|
@ -26,12 +26,6 @@ export default function(node: Slot, renderer: Renderer, options: RenderOptions &
|
|
|
|
`);
|
|
|
|
`);
|
|
|
|
|
|
|
|
|
|
|
|
if (slot && nearest_inline_component) {
|
|
|
|
if (slot && nearest_inline_component) {
|
|
|
|
const lets = node.lets;
|
|
|
|
|
|
|
|
const seen = new Set(lets.map(l => l.name.name));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nearest_inline_component.lets.forEach(l => {
|
|
|
|
|
|
|
|
if (!seen.has(l.name.name)) lets.push(l);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
options.slot_scopes.set(slot, {
|
|
|
|
options.slot_scopes.set(slot, {
|
|
|
|
input: get_slot_scope(node.lets),
|
|
|
|
input: get_slot_scope(node.lets),
|
|
|
|
output: renderer.pop()
|
|
|
|
output: renderer.pop()
|
|
|
|
|