Skip to content

Commit 3eed8b8

Browse files
committed
add ts config settings suggested by typescript docs for babel & tsc combination
1 parent 9330d34 commit 3eed8b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

client/tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
"resolveJsonModule": true,
1515
"allowSyntheticDefaultImports": true,
1616
"forceConsistentCasingInFileNames": true,
17+
18+
// From https://www.typescriptlang.org/docs/handbook/babel-with-typescript.html to use Babel for transpiling, tsc for types
19+
// Ensure that .d.ts files are created by tsc, but not .js files
20+
"declaration": true,
21+
"emitDeclarationOnly": true,
22+
// Ensure that Babel can safely transpile files in the TypeScript project
23+
"isolatedModules": true
1724
},
1825
"include": ["**/*"],
1926
"exclude": [

0 commit comments

Comments
 (0)