implement Comment in SSR compiler – fixes #165

pull/173/head
Rich Harris 8 years ago
parent 8922ecb72f
commit 4a7bb8ca8a

@ -113,6 +113,10 @@ export default function compile ( parsed, source, { filename }) {
let elementDepth = 0;
const stringifiers = {
Comment () {
return '';
},
Component ( node ) {
const props = node.attributes.map( attribute => {
let value;

@ -0,0 +1,3 @@
<p>before</p>
<p>after</p>

@ -0,0 +1,3 @@
<p>before</p>
<!-- a comment -->
<p>after</p>
Loading…
Cancel
Save