diff --git a/packages/svelte/src/compiler/phases/2-analyze/index.js b/packages/svelte/src/compiler/phases/2-analyze/index.js index cf05dfbf53..f30b761f09 100644 --- a/packages/svelte/src/compiler/phases/2-analyze/index.js +++ b/packages/svelte/src/compiler/phases/2-analyze/index.js @@ -1255,10 +1255,7 @@ const common_visitors = { binding.kind === 'derived') && // We're only concerned with reads here parent.type !== 'AssignmentExpression' && - parent.type !== 'UpdateExpression' && - (parent.type !== 'MemberExpression' || - (context.path.at(-2)?.type !== 'AssignmentExpression' && - context.path.at(-2)?.type !== 'UpdateExpression')) + parent.type !== 'UpdateExpression' ) { w.state_referenced_locally(node); }