代码拉取完成,页面将自动刷新
/**
* @link https://www.typescriptlang.org/tsconfig
* @link https://cn.vuejs.org/guide/typescript/overview#configuring-tsconfig-json
* @link https://cn.vite.dev/guide/features#typescript-compiler-options
*/
{
"compilerOptions": {
"target": "esnext",
"jsx": "preserve",
"jsxImportSource": "vue",
"lib": ["esnext", "dom"],
"useDefineForClassFields": true,
"experimentalDecorators": true,
// baseUrl 用来告诉编译器到哪里去查找模块,使用非相对模块时必须配置此项
"baseUrl": ".",
"module": "esnext",
"moduleResolution": "bundler",
// 非相对模块导入的路径映射配置,根据 baseUrl 配置进行路径计算,与 vite.config 中 alias 配置同步
"paths": {
"@/*": ["src/*"],
"@@/*": ["src/common/*"]
},
"resolveJsonModule": true,
"types": ["vite/client"],
// 允许导入 .ts .mts .tsx 拓展名的文件
"allowImportingTsExtensions": true,
// 允许 JS
"allowJs": true,
// TS 严格模式
"strict": true,
"importHelpers": true,
// 不输出任何编译后的文件,只进行类型检查
"noEmit": true,
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"isolatedModules": true,
"skipLibCheck": true
},
// 需要被编译的文件列表
"include": ["**/*.ts", "**/*.tsx", "**/*.vue", "**/*.d.ts"],
// 从编译中排除的文件列表
"exclude": ["node_modules", "dist"]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。