tsconfig.json 1.6 KB

12345678910111213141516171819202122232425262728
  1. {
  2. "compilerOptions": {
  3. /* Basic Options */
  4. "target": "ES2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
  5. "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
  6. "lib": [ /* Specify library files to be included in the compilation. */
  7. "DOM",
  8. "ES2019"
  9. ],
  10. "allowJs": true, /* Allow javascript files to be compiled. */
  11. "jsx": "react",
  12. // "checkJs": true, /* Report errors in .js files. */
  13. // "declaration": true, /* Generates corresponding '.d.ts' file. */
  14. // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
  15. "sourceMap": true, /* Generates corresponding '.map' file. */
  16. "outDir": "dist", /* Redirect output structure to the directory. */
  17. "strict": true,
  18. // "baseUrl": ".", /* Base directory to resolve non-absolute module names. */
  19. // "paths": { /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
  20. // "*": ["node_modules/*"]
  21. // },
  22. "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
  23. },
  24. "include": [
  25. "./src"
  26. ],
  27. "exclude": [ "node_modules" ]
  28. }