tsconfig.json 679 B

1234567891011121314151617181920212223242526272829303132
  1. {
  2. "files": [],
  3. "references": [
  4. { "path": "./tsconfig.app.json" },
  5. { "path": "./tsconfig.node.json" }
  6. ],
  7. "compilerOptions": {
  8. "target": "esnext",
  9. "module": "esnext",
  10. "moduleResolution": "node",
  11. "strict": true,
  12. "esModuleInterop": true,
  13. "skipLibCheck": true,
  14. "allowJs": true,
  15. "types": ["node", "vue"],
  16. "lib": ["dom", "esnext"],
  17. "sourceMap": true,
  18. "baseUrl": "./", // 确保 baseUrl 指向根目录
  19. "paths": {
  20. "@/*": ["src/*"] // 配置 @ 别名指向 src 目录
  21. }
  22. },
  23. "include": [
  24. "src/**/*.ts",
  25. "src/**/*.d.ts",
  26. "src/**/*.tsx",
  27. "src/**/*.vue"
  28. ],
  29. "exclude": [
  30. "node_modules"
  31. ]
  32. }