Skip to content

Commit

Permalink
Update template.ts [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 5, 2023
1 parent b53d75d commit db6d4d7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/language-core/src/generators/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,6 @@ export function generate(

const shouldCamelize = canCamelize
&& (!prop.arg || (prop.arg.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION && prop.arg.isStatic)) // isStatic
&& !nativeTags.has(node.tag)
&& hyphenateAttr(propName) === propName
&& !vueCompilerOptions.htmlAttributes.some(pattern => minimatch(propName!, pattern));

Expand Down Expand Up @@ -1399,7 +1398,6 @@ export function generate(

const shouldCamelize = canCamelize
&& hyphenateAttr(prop.name) === prop.name
&& !nativeTags.has(node.tag)
&& !vueCompilerOptions.htmlAttributes.some(pattern => minimatch(prop.name, pattern));

codes.push(
Expand Down Expand Up @@ -1952,12 +1950,7 @@ export function generate(
const code = prefix + _code + suffix;
const ast = createTsAst(astHolder, code);
const codes: Code[] = [];
const vars: {
text: string,
isShorthand: boolean,
offset: number,
}[] = [];
walkInterpolationFragment(
const vars = walkInterpolationFragment(
ts,
code,
ast,
Expand Down

0 comments on commit db6d4d7

Please sign in to comment.