From 006a6d9a848b1f5175b950ed77f4c52031fcde71 Mon Sep 17 00:00:00 2001 From: Ken Ho Date: Thu, 14 Apr 2022 10:58:13 +0800 Subject: [PATCH] fix(templates): jsx config should be set to 'preserve' for vue frameworks --- packages/taro-cli/templates/default/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taro-cli/templates/default/tsconfig.json b/packages/taro-cli/templates/default/tsconfig.json index dd64b054542c..1987ff96b24f 100644 --- a/packages/taro-cli/templates/default/tsconfig.json +++ b/packages/taro-cli/templates/default/tsconfig.json @@ -15,7 +15,7 @@ "sourceMap": true, "baseUrl": ".", "rootDir": ".", - "jsx": "react-jsx",<% if (framework === 'preact') {%> + "jsx": "<%= ['vue', 'vue3'].includes(framework) ? 'preserve' : 'react-jsx' %>",<% if (framework === 'preact') {%> "skipLibCheck": true,<%}%><% if (framework === 'nerv') {%> "jsx": "react", "jsxFactory": "Nerv.createElement",<%}%>