Skip to content

Commit

Permalink
fix: avoid source.addMissingImports fix for template
Browse files Browse the repository at this point in the history
close #2304
  • Loading branch information
johnsoncodehk committed Feb 3, 2023
1 parent 3ee8512 commit 48dc15f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export function generate(
}
codeGen.push('\n');

codeGen.push('// @ts-ignore\n'); // #2304
codeGen.push(`[`);
for (const tagRange of tagRanges) {
codeGen.push([
Expand Down Expand Up @@ -1756,6 +1757,7 @@ export function generate(
if (!tempVars.length)
return;

codeGen.push('// @ts-ignore\n'); // #2304
codeGen.push('[');
for (const _vars of tempVars) {
for (const v of _vars) {
Expand Down

0 comments on commit 48dc15f

Please sign in to comment.