tsconfig.json 969 B

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