Skip to content

Commit 509ca70

Browse files
committed
fix: i'm a silly goose 🪿
1 parent 3ce5ee7 commit 509ca70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/svelte/src/compiler/phases/2-analyze/visitors/ExpressionTag.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function ExpressionTag(node, context) {
2222
* the subtree as dynamic. This is because if it's inlinable it will be inlined in the template
2323
* directly making the whole thing actually static.
2424
*/
25-
if (attribute_parent && !is_inlinable_expression(node, context.state.scope)) {
25+
if (!attribute_parent || !is_inlinable_expression(node, context.state.scope)) {
2626
// TODO ideally we wouldn't do this here, we'd just do it on encountering
2727
// an `Identifier` within the tag. But we currently need to handle `{42}` etc
2828
mark_subtree_dynamic(context.path);

0 commit comments

Comments
 (0)