|
|
|
|
@ -95,7 +95,7 @@ export function Fragment(node, context) {
|
|
|
|
|
|
|
|
|
|
let flags = state.template.needs_import_node ? TEMPLATE_USE_IMPORT_NODE : undefined;
|
|
|
|
|
|
|
|
|
|
const template_name = transform_template(state, 'root', namespace, flags);
|
|
|
|
|
const template_name = transform_template(state, 'root', flags);
|
|
|
|
|
|
|
|
|
|
state.init.unshift(b.var(id, b.call(template_name)));
|
|
|
|
|
close = b.stmt(b.call('$.append', b.id('$$anchor'), id));
|
|
|
|
|
@ -145,7 +145,7 @@ export function Fragment(node, context) {
|
|
|
|
|
// special case — we can use `$.comment` instead of creating a unique template
|
|
|
|
|
state.init.unshift(b.var(id, b.call('$.comment')));
|
|
|
|
|
} else {
|
|
|
|
|
const template_name = transform_template(state, 'root', namespace, flags);
|
|
|
|
|
const template_name = transform_template(state, 'root', flags);
|
|
|
|
|
|
|
|
|
|
state.init.unshift(b.var(id, b.call(template_name)));
|
|
|
|
|
}
|
|
|
|
|
|