From 1ccae157a4b01a87a734522968a7d9d2d76ec3f2 Mon Sep 17 00:00:00 2001 From: skyclouds2001 Date: Thu, 26 Sep 2024 00:14:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(taro-cli):=20=E4=BD=BFTS=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E4=B8=8B=E7=94=9F=E6=88=90=E7=9A=84=E6=A8=A1=E6=9D=BF=EF=BC=8C?= =?UTF-8?q?import=E4=B8=8Eexport=E9=97=B4=E4=BF=9D=E6=8C=81=E4=B8=80?= =?UTF-8?q?=E8=A1=8C=E7=A9=BA=E9=9A=99=EF=BC=8C=E4=BB=A5=E9=81=BF=E5=85=8D?= =?UTF-8?q?ESLint=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-cli/templates/default/config/dev.js | 4 ++-- packages/taro-cli/templates/default/config/prod.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/taro-cli/templates/default/config/dev.js b/packages/taro-cli/templates/default/config/dev.js index e83ed71301bb..4d91c53ef749 100644 --- a/packages/taro-cli/templates/default/config/dev.js +++ b/packages/taro-cli/templates/default/config/dev.js @@ -1,5 +1,5 @@ -{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli"; -{{/if}} +{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli"{{/if}} + export default { {{#if (eq compiler "Webpack5") }} logger: { quiet: false, diff --git a/packages/taro-cli/templates/default/config/prod.js b/packages/taro-cli/templates/default/config/prod.js index 6533c1508de1..7689cc126070 100644 --- a/packages/taro-cli/templates/default/config/prod.js +++ b/packages/taro-cli/templates/default/config/prod.js @@ -1,5 +1,5 @@ -{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli"; -{{/if}} +{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli"{{/if}} + export default { mini: {}, h5: {