[fix] Named slots breaks svelte-ignore comments

Fixes #8075
pull/8105/head
mojinming 4 years ago
parent 512eda7a84
commit 4fb464d20e

@ -143,6 +143,10 @@ export default class InlineComponent extends Node {
children.push(slot_template);
info.children.splice(i, 1);
} else if (child.type === 'Comment') {
if (children.length > 0) {
children[children.length - 1].children.unshift(child);
}
}
}

Loading…
Cancel
Save