ts添加alias别名设置
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"jsx": "react",
"esModuleInterop": true,
"types": ["jest"],
"strict": true,
"skipLibCheck": true,
"declaration": true,
"baseUrl": "./",
"paths": {
"@/*": [
"src/*"
]
}
},
}