|
|
|
|
@ -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);
|
|
|
|
|
|