feat: 💥 新增tsconfig path映射
This commit is contained in:
parent
014eee5584
commit
22cd6da835
|
|
@ -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"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue