@volar/vue-language-core
Advanced tools
Comparing version 1.4.4 to 1.5.0
@@ -58,8 +58,3 @@ "use strict"; | ||
}; | ||
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; | ||
@@ -66,0 +61,0 @@ generateSrc(); |
@@ -89,15 +89,6 @@ "use strict"; | ||
const lang = (0, reactivity_1.computed)(() => { | ||
let lang = !_sfc.script && !_sfc.scriptSetup ? 'ts' | ||
return !_sfc.script && !_sfc.scriptSetup ? 'ts' | ||
: _sfc.scriptSetup && _sfc.scriptSetup.lang !== 'js' ? _sfc.scriptSetup.lang | ||
: _sfc.script && _sfc.script.lang !== 'js' ? _sfc.script.lang | ||
: 'js'; | ||
if (vueCompilerOptions.jsxTemplates) { | ||
if (lang === 'js') { | ||
lang = 'jsx'; | ||
} | ||
else if (lang === 'ts') { | ||
lang = 'tsx'; | ||
} | ||
} | ||
return lang; | ||
}); | ||
@@ -104,0 +95,0 @@ const cssVars = (0, reactivity_1.computed)(() => collectCssVars(_sfc)); |
@@ -17,3 +17,2 @@ import * as embedded from '@volar/language-core'; | ||
extensions: string[]; | ||
jsxTemplates: boolean; | ||
strictTemplates: boolean; | ||
@@ -20,0 +19,0 @@ skipTemplateCodegen: boolean; |
@@ -170,3 +170,2 @@ "use strict"; | ||
extensions: vueOptions.extensions ?? ['.vue'], | ||
jsxTemplates: vueOptions.jsxTemplates ?? false, | ||
strictTemplates: vueOptions.strictTemplates ?? false, | ||
@@ -173,0 +172,0 @@ skipTemplateCodegen: vueOptions.skipTemplateCodegen ?? false, |
{ | ||
"name": "@volar/vue-language-core", | ||
"version": "1.4.4", | ||
"version": "1.5.0", | ||
"main": "out/index.js", | ||
@@ -29,3 +29,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "3f9b54190b431969f3659be740edb9a481564f8b" | ||
"gitHead": "4e2ea5bb680127968bb82a6622ea335372e0e786" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
228027
5035