update get template

hoist-unmodified-var
Ben McCann 2 years ago
parent ba87d707ee
commit dfe7df0822

@ -77,10 +77,18 @@ export function client_component(source, analysis, options) {
return a; return a;
}, },
get template() { get template() {
/** @type {any[]} */ const a = {
const a = []; quasi: [],
a.push = () => expressions: []
error(null, 'INTERNAL', 'template.push should not be called outside create_block'); };
a.quasi.push = () =>
error(null, 'INTERNAL', 'template.quasi.push should not be called outside create_block');
a.expressions.push = () =>
error(
null,
'INTERNAL',
'template.expressions.push should not be called outside create_block'
);
return a; return a;
}, },
legacy_reactive_statements: new Map(), legacy_reactive_statements: new Map(),

Loading…
Cancel
Save