You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
/** |
|
* @program: kicc-ui |
|
* @description: vite的typescript编译配置 |
|
* vite内部使用esbuild对typescript编译成js |
|
* vite天然对typescript的支持文档: https://vitejs.bootcss.com/guide/features.html#typescript |
|
* 配置官方文档: https://www.typescriptlang.org/docs/handbook/compiler-options.html |
|
* @author: entfrm开发团队-王翔 |
|
* @create: 2022/4/6 |
|
*/ |
|
{ |
|
"compilerOptions": { |
|
"target": "esnext", |
|
"module": "esnext", |
|
"moduleResolution": "node", |
|
"strict": true, |
|
"forceConsistentCasingInFileNames": true, |
|
"allowSyntheticDefaultImports": true, |
|
"strictFunctionTypes": false, |
|
"jsx": "preserve", |
|
"baseUrl": ".", |
|
"allowJs": true, |
|
"sourceMap": true, |
|
"esModuleInterop": true, |
|
"resolveJsonModule": true, |
|
"experimentalDecorators": true, |
|
"lib": ["dom", "esnext"], |
|
"noImplicitThis" : false, |
|
"noImplicitAny": false, |
|
"skipLibCheck": true, |
|
"types": ["vite/client", "@amap/amap-jsapi-loader/src/global"], |
|
"typeRoots": ["./node_modules/@types/", "./types"], |
|
"removeComments": true, |
|
"paths": { |
|
"/@/*": ["src/*"], |
|
"/#/*": ["types/*"] |
|
} |
|
}, |
|
"include": [ |
|
"src/**/*.ts", |
|
"src/**/*.d.ts", |
|
"src/**/*.tsx", |
|
"src/**/*.vue", |
|
"types/**/*.d.ts", |
|
"types/**/*.ts", |
|
"build/**/*.ts", |
|
"build/**/*.d.ts", |
|
"vite.config.ts", |
|
], |
|
"exclude": ["node_modules", "dist", "**/*.js"] |
|
}
|
|
|