fix: i'm a silly goose 🪿

pull/14269/head
paoloricciuti 2 years ago
parent 3ce5ee74c4
commit 509ca700c1

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

Loading…
Cancel
Save