tsconfig.json 674 B

123456789101112131415161718192021222324
  1. {
  2. "extends": "@vue/tsconfig/tsconfig.json",
  3. "compilerOptions": {
  4. "allowJs": true,
  5. "sourceMap": true,
  6. "baseUrl": ".",
  7. "paths": {
  8. "@/*": ["./src/*"]
  9. },
  10. "lib": ["esnext", "dom"],
  11. "types": [
  12. "@dcloudio/types",
  13. "miniprogram-api-typings",
  14. "@uni-helper/uni-app-types",
  15. "@uni-helper/uni-ui-types"
  16. ]
  17. },
  18. // 校验 uni-app 组件类型
  19. "vueCompilerOptions": {
  20. // experimentalRuntimeMode 已废弃,现调整为 nativeTags,请升级 Volar 插件至最新版本
  21. "nativeTags": ["block", "component", "template", "slot"]
  22. },
  23. "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
  24. }