tsconfig.json 678 B

1234567891011121314151617181920212223242526
  1. {
  2. "compilerOptions": {
  3. "target": "es2022",
  4. "useDefineForClassFields": true,
  5. "module": "esnext",
  6. "moduleResolution": "node",
  7. "strict": true,
  8. "jsx": "preserve",
  9. "sourceMap": true,
  10. "resolveJsonModule": true,
  11. "esModuleInterop": true,
  12. "lib": ["esnext", "dom"],
  13. "baseUrl": ".",
  14. "allowJs": true,
  15. "paths": {
  16. "@/*": ["src/*"]
  17. },
  18. "types": ["vite/client"],
  19. "skipLibCheck": true,
  20. // 允许默认导入
  21. "allowSyntheticDefaultImports": true,
  22. "forceConsistentCasingInFileNames": true
  23. },
  24. "include": ["src/**/*.ts", "src/**/*.vue", "src/types/**/*.d.ts"],
  25. "exclude": ["node_modules", "dist", "**/*.js"]
  26. }