fix component.js to handle member await expressions

aa-coordination-resource
Dominic Gannaway 7 months ago
parent c6e0351267
commit 31783b85e0

@ -180,7 +180,8 @@ export function build_component(node, component_name, context, anchor = context.
return (
n.type === 'ExpressionTag' &&
n.expression.type !== 'Identifier' &&
n.expression.type !== 'MemberExpression'
(n.expression.type !== 'MemberExpression' ||
n.expression.object.type !== 'ArrayExpression')
);
});

Loading…
Cancel
Save