Skip to content

Commit 1e8fe64

Browse files
committed
fix
1 parent 0c584a0 commit 1e8fe64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/MemberExpression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function MemberExpression(node, context) {
2828
parent?.type !== 'AssignmentExpression' &&
2929
parent?.type !== 'UpdateExpression' &&
3030
parent?.type !== 'Component' &&
31-
(parent?.type !== 'MemberExpression' || !parent?.optional)
31+
!node.optional
3232
) {
3333
return trace(
3434
node,

0 commit comments

Comments
 (0)