tsconfig.json 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. "allowSyntheticDefaultImports": true,
  13. "forceConsistentCasingInFileNames": true,
  14. "sourceMap": true,
  15. "baseUrl": ".",
  16. "allowJs": true,
  17. "resolveJsonModule": true, // 包含导入的模块。json的扩展
  18. "lib": [
  19. "dom",
  20. "esnext"
  21. ],
  22. "incremental": true,
  23. "paths": {
  24. "/@/*": [
  25. "src/*"
  26. ],
  27. "/#/*": [
  28. "types/*"
  29. ]
  30. },
  31. "types": [
  32. "node"
  33. ],
  34. "typeRoots": [
  35. "./node_modules/@types/",
  36. "./types"
  37. ],
  38. },
  39. "include": [
  40. "src/**/*.ts",
  41. "src/**/*.tsx",
  42. "src/**/*.vue",
  43. "tests/**/*.ts",
  44. "src/utils/path.js",
  45. "types/**/*.d.ts",
  46. "types/**/*.ts",
  47. "types/shims-tsx.d.ts"
  48. ],
  49. "exclude": [
  50. "node_modules",
  51. "dist",
  52. "**/*.js"
  53. ],
  54. }