|
|
|
@ -19,11 +19,7 @@ export default function (node, renderer, options) {
|
|
|
|
if (options.hydratable) {
|
|
|
|
if (options.hydratable) {
|
|
|
|
const start_comment = `HEAD_${node.id}_START`;
|
|
|
|
const start_comment = `HEAD_${node.id}_START`;
|
|
|
|
const end_comment = `HEAD_${node.id}_END`;
|
|
|
|
const end_comment = `HEAD_${node.id}_END`;
|
|
|
|
expression = x `'<!-- ${start_comment} -->' + ${expression} + '<!-- ${end_comment} -->'`;
|
|
|
|
expression = x`'<!-- ${start_comment} -->' + ${expression} + '<!-- ${end_comment} -->'`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
renderer.add_expression(x `$$result.head += ${expression}, ""`);
|
|
|
|
renderer.add_expression(x`$$result.head += ${expression}, ""`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|