tsconfig.json 1.0 KB

123456789101112131415161718
  1. {
  2. "compilerOptions": {
  3. /* Visit https://aka.ms/tsconfig to read more about this file */
  4. "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
  5. /* Modules */
  6. "moduleResolution": "node",
  7. "module": "ES6", /* Specify what module code is generated. */
  8. "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
  9. // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
  10. "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
  11. /* Type Checking */
  12. "strict": true, /* Enable all strict type-checking options. */
  13. "declaration": true, // 生成 `.d.ts` 文件
  14. "outDir": "./dist", // 编译后生成的文件目录
  15. "skipLibCheck": true, /* Skip type checking all .d.ts files. */
  16. "types": []
  17. }
  18. }