|
|
@ -372,6 +372,14 @@ export default function dom(
|
|
|
|
}) as Expression)
|
|
|
|
}) as Expression)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ctx_names = component.compile_options.dev && {
|
|
|
|
|
|
|
|
type: 'ArrayExpression',
|
|
|
|
|
|
|
|
elements: initial_context.map(member => ({
|
|
|
|
|
|
|
|
type: 'Literal',
|
|
|
|
|
|
|
|
value: member.name
|
|
|
|
|
|
|
|
}) as Expression)
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
body.push(b`
|
|
|
|
body.push(b`
|
|
|
|
function ${definition}(${args}) {
|
|
|
|
function ${definition}(${args}) {
|
|
|
|
${reactive_store_declarations}
|
|
|
|
${reactive_store_declarations}
|
|
|
@ -408,6 +416,8 @@ export default function dom(
|
|
|
|
|
|
|
|
|
|
|
|
${uses_props && b`$$props = @exclude_internal_props($$props);`}
|
|
|
|
${uses_props && b`$$props = @exclude_internal_props($$props);`}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${ctx_names && x`$$self.ctx_names = ${ctx_names};`}
|
|
|
|
|
|
|
|
|
|
|
|
return ${return_value};
|
|
|
|
return ${return_value};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`);
|
|
|
|
`);
|
|
|
|