Skip to content

Commit

Permalink
fix: strictTemplates not working to attrs
Browse files Browse the repository at this point in the history
close #2136
  • Loading branch information
johnsoncodehk committed Nov 29, 2022
1 parent 6ab3722 commit 0298828
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1033,7 +1033,7 @@ export function generate(
writePropName(
propName,
true,
[prop.loc.start.offset, prop.loc.start.offset + attrNameText.length],
[prop.loc.start.offset, prop.loc.start.offset + prop.name.length],
{
...getCaps(capabilitiesSet.attr),
rename: {
Expand All @@ -1051,13 +1051,13 @@ export function generate(
codeGen.push('true');
}
writePropValueSuffix(true);
writePropEnd(true);
codeGen.push([
'',
'template',
prop.loc.end.offset,
getCaps(capabilitiesSet.diagnosticOnly),
]);
writePropEnd(true);
// original name
if (attrNameText !== propName) {
writePropStart(true);
Expand Down

0 comments on commit 0298828

Please sign in to comment.