diff --git a/src/generators/dom/visitors/Element/Attribute.ts b/src/generators/dom/visitors/Element/Attribute.ts index 80b363bd01..12a6842658 100644 --- a/src/generators/dom/visitors/Element/Attribute.ts +++ b/src/generators/dom/visitors/Element/Attribute.ts @@ -51,6 +51,8 @@ export default function visitAttribute( let shouldCache; let hasChangeableIndex; + // TODO some of this code is repeated in Tag.ts — would be good to + // DRY it out if that's possible without introducing crazy indirection if (attribute.value.length === 1) { // single {{tag}} — may be a non-string const { expression } = attribute.value[0];