Skip to content

Commit

Permalink
fix: component type from regular components option break in template
Browse files Browse the repository at this point in the history
close #1731
  • Loading branch information
johnsoncodehk committed Aug 27, 2022
1 parent 3d84c0d commit 2e44728
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vue-language-core/src/generators/script.ts
Expand Up @@ -450,11 +450,12 @@ export function generate(

if (lang === 'jsx' || lang === 'tsx') {

writeExportOptions();
writeConstNameOption();

codeGen.addText(`function __VLS_template() {\n`);
codeGen.addText(`import * as __VLS_types from './__VLS_types.js'; import('./__VLS_types.js');\n`);

writeExportOptions();
writeConstNameOption();
const templateGened = writeTemplateContext();

codeGen.addText(`}\n`);
Expand Down

0 comments on commit 2e44728

Please sign in to comment.