diff --git a/tsconfig.json b/tsconfig.json index 00d0ae7..31ebbd2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,8 +12,18 @@ "esModuleInterop": true, "lib": ["ESNext", "DOM"], // 跳过库检查,解决打包失败 - "skipLibCheck": true + "skipLibCheck": true, + // 解析非相对模块名的基准目录 + "baseUrl": "./", + // 模块名到基于 baseUrl 的路径映射的列表。 + "paths": { + "@": ["src"], + "@/*": ["src/*"] + } }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], - "references": [{ "path": "./tsconfig.node.json" }] + "references": [ + { "path": "./tsconfig.node.json" } + ], + "exclude": ["node_modules","dist","**/*.js"] }