From 8a182a33ea44e007e81bd31e08ab7cd4a14eba16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Sun, 20 Mar 2022 23:27:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor(tsconfig.json):=20=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4tsconfig.node.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 4ccc46b..31bd024 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,8 +14,8 @@ "paths": { "@/*": ["src/*"] }, + "allowSyntheticDefaultImports": true, // 默认导入 "skipLibCheck": true, // 不对第三方依赖类型检查 ,element-plus 生产打包报错 }, - "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], - "references": [{ "path": "./tsconfig.node.json" }] + "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] }