tsconfig.json 1002 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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": ["dom", "esnext"],
  19. "incremental": true,
  20. "paths": {
  21. "/@/*": ["src/*"],
  22. "/#/*": ["types/*"]
  23. },
  24. "types": ["node"],
  25. "typeRoots": ["./node_modules/@types/", "./types"]
  26. },
  27. "include": [
  28. "src/**/*.ts",
  29. "src/**/*.tsx",
  30. "src/**/*.vue",
  31. "tests/**/*.ts",
  32. "src/utils/path.js",
  33. "types/**/*.d.ts",
  34. "types/**/*.ts",
  35. "types/global.d.ts",
  36. "types/shims-tsx.d.ts",
  37. "types/shims-vue.d.ts"
  38. ],
  39. "exclude": ["node_modules", "dist", "**/*.js"]
  40. }