Skip to content

Commit

Permalink
fix: check target to add @jsxImportSource
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Mar 25, 2023
1 parent 2afb3d7 commit d1b5682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-language-core/src/generators/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function generate(
};
const generateFunctionType = !!sfc.scriptSetup?.generic;

if (vueCompilerOptions.jsxTemplates) {
if (vueCompilerOptions.jsxTemplates && vueCompilerOptions.target >= 3.3) {
codeGen.push(`/** @jsxImportSource vue */\n`);
}

Expand Down

0 comments on commit d1b5682

Please sign in to comment.