Skip to content

Commit 73b4c2b

Browse files
authored
fix(language-core): ignore ts errors in function-scoped declare expressions (#5090)
1 parent ad75e70 commit 73b4c2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/language-core/lib/codegen/script/scriptSetup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ function* generateMacros(
321321
ctx: ScriptCodegenContext
322322
): Generator<Code> {
323323
if (options.vueCompilerOptions.target >= 3.3) {
324+
yield `// @ts-ignore${newLine}`;
324325
yield `declare const { `;
325326
for (const macro of Object.keys(options.vueCompilerOptions.macros)) {
326327
if (!ctx.bindingNames.has(macro)) {

0 commit comments

Comments
 (0)