43 lines
1.3 KiB
JSON
43 lines
1.3 KiB
JSON
|
|
{
|
||
|
|
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
||
|
|
"include": [
|
||
|
|
"./src/**/*.ts",
|
||
|
|
"./src/**/*.js",
|
||
|
|
"./src/**/*.vue",
|
||
|
|
"./vite/**/*.ts",
|
||
|
|
"./index.html",
|
||
|
|
"./bridge/**/*.ts",
|
||
|
|
"./public/html/**/*.html",
|
||
|
|
"./public/html/**/*.js",
|
||
|
|
"./public/html/**/*.css",
|
||
|
|
"prettier.config.*",
|
||
|
|
"./eslint.config.*",
|
||
|
|
"./stylelint.config.*",
|
||
|
|
"./vite.config.*",
|
||
|
|
"./vite.simplified.config.*",
|
||
|
|
"eslint.config.*"
|
||
|
|
],
|
||
|
|
|
||
|
|
"compilerOptions": {
|
||
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||
|
|
"baseUrl": "./", // 用于解析非相对模块名称的基目录
|
||
|
|
"composite": true,
|
||
|
|
"target": "ESNext", // 目标语言的版本
|
||
|
|
"module": "ESNext", // 生成代码的模板标准
|
||
|
|
"moduleResolution": "bundler", // 选择模块解析策略
|
||
|
|
"esModuleInterop": true,
|
||
|
|
"allowImportingTsExtensions": true,
|
||
|
|
"isolatedModules": true, // 将每个文件做为单独的模块 (vite所需)
|
||
|
|
"allowSyntheticDefaultImports": true, // 允许从没有设置默认导出的模块中默认导入 (解决 不支持使用引入 使用export=导出的模块问题)
|
||
|
|
"jsx": "preserve", // 指定 jsx 代码的生成
|
||
|
|
"types": ["vue", "vite/client", "unplugin-icons/types/vue"],
|
||
|
|
"useDefineForClassFields": true,
|
||
|
|
"moduleDetection": "force",
|
||
|
|
|
||
|
|
// 路径映射
|
||
|
|
"paths": {
|
||
|
|
"@/*": ["./src/*"]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|