tsconfig.node.json文章来源:https://www.toymoban.com/news/detail-640424.html
{
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"],
}
tsconfig.json文章来源地址https://www.toymoban.com/news/detail-640424.html
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Node",
"suppressImplicitAnyIndexErrors": true,
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": [
"ESNext",
"DOM"
],
"skipLibCheck": true,
"baseUrl": "./",
"paths": { // 路径映射,相对于baseUrl
"@/*": [
"src/*"
],
"#/*": [
"types/*"
]
}
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue",
"src/store/userInfo.js",
"src/theme/theme.ts"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}
到了这里,关于vue3+vite项目中tsconfig.json / tsconfig.node.json 配置的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!