-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
28 lines (28 loc) Β· 989 Bytes
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"esnext",
"ES2019"
],
"outDir": "./dist/",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"noImplicitAny": true, // dont allow implicit "any" types inferred
"module": "commonjs", // ES6 means compiled imports modules stay as the modern format (i.e. import {a} from 'b') https://www.typescriptlang.org/tsconfig#module
"target": "es5", // ES5 means arrow functions () => void etc are compiled
"jsx": "react-jsx", // compile react code (e.g. <div>hello</div>) to js code (e.g. react.createElement(div, 'hello'))
"allowJs": true,
"moduleResolution": "node",
"sourceMap": true,
"strict": true
},
"ts-node": {
"compilerOptions": {
"module": "CommonJS" // for webpack-cli apparently ts-node only accespts commonjs? Need to compile typescript webpack config file
}
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}