tsconfig.json 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "compilerOptions": {
  3. "target": "esnext",
  4. "module": "esnext",
  5. "strict": false,
  6. "jsx": "preserve",
  7. "importHelpers": true,
  8. "moduleResolution": "node",
  9. "experimentalDecorators": true,
  10. "skipLibCheck": true,
  11. "esModuleInterop": true,
  12. "isolatedModules": true,
  13. "allowSyntheticDefaultImports": true,
  14. "forceConsistentCasingInFileNames": true,
  15. "sourceMap": true,
  16. "baseUrl": ".",
  17. "allowJs": true,
  18. "resolveJsonModule": true, // 包含导入的模块。json的扩展
  19. "lib": ["dom", "esnext"],
  20. "incremental": true,
  21. "paths": {
  22. "/@/*": ["src/*"],
  23. "/#/*": ["types/*"]
  24. },
  25. "types": ["node", "vite/client"],
  26. "typeRoots": ["./node_modules/@types/", "./types"]
  27. },
  28. "include": [
  29. "src/**/*.ts",
  30. "src/**/*.tsx",
  31. "src/**/*.vue",
  32. "tests/**/*.ts",
  33. "src/utils/path.js",
  34. "types/**/*.d.ts",
  35. "types/**/*.ts",
  36. "types/global.d.ts",
  37. "types/shims-tsx.d.ts",
  38. "types/shims-vue.d.ts",
  39. "mock/asyncRoutes.ts"
  40. ],
  41. "exclude": ["node_modules", "dist", "**/*.js"]
  42. }