diff --git a/src/compiler/compile/render_dom/index.ts b/src/compiler/compile/render_dom/index.ts index 4895c97748..ee17ba76b8 100644 --- a/src/compiler/compile/render_dom/index.ts +++ b/src/compiler/compile/render_dom/index.ts @@ -195,7 +195,6 @@ export default function dom( const single = ( node.type === 'AssignmentExpression' && assignee.type === 'Identifier' && - parent.type === 'ExpressionStatement' && assignee.name[0] !== '$' ); @@ -205,6 +204,7 @@ export default function dom( const variable = component.var_lookup.get(name); if (variable && (variable.hoistable || variable.global || variable.module)) return; + debugger if (single && !(variable.subscribable && variable.reassigned)) { if (variable.referenced || variable.is_reactive_dependency || variable.export_name) { diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index 92e227e57c..55490838c9 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -106,6 +106,7 @@ export function init(component, options, instance, create_fragment, not_equal, p if ($$.bound[key]) $$.bound[key](value); if (ready) make_dirty(component, key); } + return value; }) : props;