5 Star 39 Fork 14

un-pany/mobvue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tsconfig.json 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
pany-ang 提交于 2025-03-05 17:15 +08:00 . chore: 移除 vite-plugin-pwa/client
/**
* @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"]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/un-pany/mobvue.git
git@gitee.com:un-pany/mobvue.git
un-pany
mobvue
mobvue
main

搜索帮助