hi-sass-frame/tsconfig_element.json

83 lines
1.7 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"compileOnSave": false,
"compilerOptions": {
//允许使用js
"allowJs": true,
//允许导入json模块
"resolveJsonModule": true,
//移除注释
"removeComments": true,
"outDir": "dist/electron/main",
"sourceMap": true,
"declaration": true,
"declarationDir": "./fixTypes",
"module": "esnext",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"emitDecoratorMetadata": true,
//允许univerjs插件的Inject装修器函数需要打开
"experimentalDecorators": true,
"importHelpers": true,
"isolatedModules": true,
"target": "esnext",
//指定ts运行环境所支持的js版本 es2017
"baseUrl": "./",
//相对于此目录的路径
"paths": {
"@/*": [
"src/renderer/*"
],
"@api/*": [
"src/renderer/api/*"
],
"@config/*": [
"config/*"
],
"@main/*": [
"src/main/*"
],
"@mock/*": [
"src/renderer/mock/*"
],
"@renderer/*": [
"src/renderer/*"
],
"@src/*": [
"src/*"
],
"@store/*": [
"src/renderer/store/modules/*"
],
"@theme/*": [
"src/renderer/themes/default/*"
]
},
"typeRoots": [
"node_modules/@types",
"node_modules"
],
"types": [
"vite/client",
"unplugin-icons/types/vue",
"element-plus/global",
"node"
],
"lib": [
"esnext",
"dom"
]
//代码运行时包含的库 es2018
},
"include": [
"src/**/*.ts",
"src/**/*.vue",
".electron-vite/vite.config.mts"
// "node_modules/@types/node/globals.d.ts" //这个是IDE自动添加的
],
//include设置不正确的直接表现就是在IDE中不能有效识别别名路径、不能正确识别vue组件等
"exclude": [
"node_modules",
"dist"
]
}