|
|
@ -466,11 +466,11 @@ export function client_component(analysis, options) {
|
|
|
|
|
|
|
|
|
|
|
|
if (needs_store_cleanup) {
|
|
|
|
if (needs_store_cleanup) {
|
|
|
|
component_block.body.push(b.stmt(b.call('$$cleanup')));
|
|
|
|
component_block.body.push(b.stmt(b.call('$$cleanup')));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (needs_store_cleanup && component_returned_object.length > 0) {
|
|
|
|
if (component_returned_object.length > 0) {
|
|
|
|
component_block.body.push(b.return(b.id('$$pop')));
|
|
|
|
component_block.body.push(b.return(b.id('$$pop')));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (analysis.uses_rest_props) {
|
|
|
|
if (analysis.uses_rest_props) {
|
|
|
|
const named_props = analysis.exports.map(({ name, alias }) => alias ?? name);
|
|
|
|
const named_props = analysis.exports.map(({ name, alias }) => alias ?? name);
|
|
|
|