chore: simpler check first

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
pull/14269/head
Paolo Ricciuti 2 years ago committed by GitHub
parent 72244cd14e
commit 63d96cadda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -84,7 +84,7 @@ export function process_children(nodes, initial, is_element, { visit, state }) {
state.update.push(update);
} else {
// if the expression is inlinable we just push it to the template
if (is_inlinable_expression(sequence, state.scope) && !is_text) {
if (!is_text && is_inlinable_expression(sequence, state.scope)) {
escape_template_quasis(value);
state.template.push(value);
} else {

Loading…
Cancel
Save