tsconfig.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "compilerOptions": {
  3. // 严格属性初始化
  4. "strictPropertyInitialization": false,
  5. "target": "esnext",
  6. "module": "esnext",
  7. "strict": true,
  8. "jsx": "preserve",
  9. "importHelpers": true,
  10. "moduleResolution": "node",
  11. "experimentalDecorators": true,
  12. "esModuleInterop": true,
  13. "allowSyntheticDefaultImports": true,
  14. "sourceMap": true,
  15. "baseUrl": ".",
  16. "types": [
  17. "node",
  18. "jest",
  19. "webpack-env"
  20. ],
  21. "typeRoots": [
  22. "node_modules",
  23. "src/@types/**/*"
  24. ],
  25. "paths": {
  26. "@/*": [
  27. "src/*"
  28. ]
  29. },
  30. "lib": [
  31. "esnext",
  32. "dom",
  33. "dom.iterable",
  34. "scripthost"
  35. ]
  36. },
  37. "include": [
  38. "src/**/*.ts",
  39. "src/**/*.tsx",
  40. "src/**/*.vue",
  41. "tests/**/*.ts",
  42. "tests/**/*.tsx"
  43. , "src/utils/directive.js" ],
  44. "exclude": [
  45. "node_modules",
  46. "src/@types/**/*"
  47. ]
  48. }