fix create debugging comment for comment

pull/4567/head
Tan Li Hau 6 years ago
parent e50ad1dcb6
commit 97b4c730df

@ -24,7 +24,7 @@ export default function create_debugging_comment(
while (source[d] !== '>') d += 1;
d += 1;
}
} else if (node.type === 'Text') {
} else if (node.type === 'Text' || node.type === 'Comment') {
d = node.end;
} else {
// @ts-ignore

@ -0,0 +1,3 @@
<slot name="a"><!-- placeholder--></slot>
<slot name="b"><!-- placeholder--> </slot>
<slot name="c"><!-- placeholder--> foobar </slot>

@ -0,0 +1,5 @@
export default {
html: `
foobar
`,
};

@ -0,0 +1,5 @@
<script>
import Inner from "./Inner.svelte";
</script>
<Inner></Inner>
Loading…
Cancel
Save