tsconfig.json 849 B

123456789101112131415161718192021222324252627282930
  1. {
  2. "compileOnSave": false,
  3. "compilerOptions": {
  4. "baseUrl": "./",
  5. "outDir": "./dist/out-tsc",
  6. "sourceMap": true,
  7. "declaration": false,
  8. "downlevelIteration": true,
  9. "experimentalDecorators": true,
  10. "module": "esnext",
  11. "moduleResolution": "node",
  12. "importHelpers": true,
  13. "target": "es5",
  14. "allowSyntheticDefaultImports": true,
  15. "esModuleInterop": false,
  16. "typeRoots": [
  17. "node_modules/@types"
  18. ],
  19. "lib": [
  20. "es2018",
  21. "dom"
  22. ]
  23. },
  24. "angularCompilerOptions": {
  25. "fullTemplateTypeCheck": false,//编译器预编译(改为true后,--prod打包后会报错:ERROR in : Illegal state: Could not load the summary for directive RouterOutlet in)
  26. "strictInjectionParameters": true,
  27. "disableTypeScriptVersionCheck": true//禁用项目对typescript版本的检查
  28. }
  29. }