Files
JavaScriptServices/templates/ReactSpa/tsconfig.json

21 lines
615 B
JSON

{
"compilerOptions": {
"baseUrl": ".",
"moduleResolution": "node",
"target": "es6",
"jsx": "preserve",
"sourceMap": true,
"skipDefaultLibCheck": true,
"paths": {
// Fix "Duplicate identifier" errors caused by multiple dependencies fetching their own copies of type definitions.
// We tell TypeScript which type definitions module to treat as the canonical one (instead of combining all of them).
"history": ["./node_modules/@types/history/index"],
"react": ["./node_modules/@types/react/index"]
}
},
"exclude": [
"bin",
"node_modules"
]
}