Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
},
"narrowingTypesInInlineHandlers": {
"deprecated": true
},
"jsxTemplates": {
"deprecated": true
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions packages/vue-language-core/schemas/vue-tsconfig.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
"default": [ ".vue" ],
"markdownDescription": "Valid file extensions that should be considered as regular Vue SFC, please note that you should not use this option separately for additional file extensions IDE support, see https://github.com/johnsoncodehk/volar/tree/master/packages/vscode-vue/README.md#custom-file-extensions."
},
"jsxTemplates": {
"type": "boolean",
"default": false,
"markdownDescription": "Whether to compile template to JSX. (Generics component type checking only working with JSX)"
},
"strictTemplates": {
"type": "boolean",
"default": false,
Expand Down
7 changes: 1 addition & 6 deletions packages/vue-language-core/src/generators/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,7 @@ export function generate(
PropsChildren: false,
};

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

let generatedTemplate = false;

Expand Down
Loading