tsconfig.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* To learn more about this file see: https://angular.io/config/tsconfig. */
  2. {
  3. "compileOnSave": false,
  4. "compilerOptions": {
  5. "baseUrl": "./src",
  6. "outDir": "./dist/out-tsc",
  7. "forceConsistentCasingInFileNames": true,
  8. "strict": true,
  9. "noImplicitOverride": true,
  10. "noPropertyAccessFromIndexSignature": true,
  11. "noImplicitReturns": true,
  12. "noFallthroughCasesInSwitch": true,
  13. "esModuleInterop": true,
  14. "allowSyntheticDefaultImports": true,
  15. "allowImportingTsExtensions": true,// 保留此选项
  16. "sourceMap": true,
  17. "declaration": false,
  18. "downlevelIteration": true,
  19. "experimentalDecorators": true,
  20. "emitDecoratorMetadata": true,
  21. "skipLibCheck": true,
  22. "moduleResolution": "node",
  23. "importHelpers": true,
  24. "target": "es2022",
  25. "module": "es2020",
  26. "lib": ["es2018", "dom"],
  27. "useDefineForClassFields": false,
  28. "noEmit": true // 添加此行
  29. // 或者可以使用 "emitDeclarationOnly": true
  30. },
  31. "angularCompilerOptions": {
  32. "enableI18nLegacyMessageIdFormat": false,
  33. "strictInjectionParameters": true,
  34. "strictInputAccessModifiers": true,
  35. "strictTemplates": true,
  36. "enableIvy": true
  37. },
  38. "include": [
  39. "src/**/*.ts"
  40. ]
  41. }