Skip to content

Commit

Permalink
fix(language-core): ignore ts errors in function-scoped declare expre…
Browse files Browse the repository at this point in the history
…ssions (#5090)
  • Loading branch information
zhiyuanzmj authored Dec 26, 2024
1 parent ad75e70 commit 73b4c2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/language-core/lib/codegen/script/scriptSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ function* generateMacros(
ctx: ScriptCodegenContext
): Generator<Code> {
if (options.vueCompilerOptions.target >= 3.3) {
yield `// @ts-ignore${newLine}`;
yield `declare const { `;
for (const macro of Object.keys(options.vueCompilerOptions.macros)) {
if (!ctx.bindingNames.has(macro)) {
Expand Down

0 comments on commit 73b4c2b

Please sign in to comment.