tsconfig.json 1.0 KB

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