-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsconfig.json
19 lines (19 loc) · 1012 Bytes
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ // TypeScript configuration file: provides options to the TypeScript
// compiler (tsc) and makes VSCode recognize this folder as a TS project,
// enabling the VSCode build tasks "tsc: build" and "tsc: watch".
"compilerOptions": {
"target": "es5", // Compatible with older browsers
"module": "umd", // Compatible with both Node.js and browser
"moduleResolution": "node", // Tell tsc to look in node_modules for modules
"sourceMap": false, // Whether to create *.js.map files
"jsx": "react", // Causes inline XML (JSX code) to be expanded
"strict": true, // Strict types, eg. prohibits `var x=0; x=null`
"alwaysStrict": true, // Enable JavaScript's "use strict" mode
"esModuleInterop": true, // CommonJS import behavior similar to Babel/mjs
"lib": ["es5", "es6"],
"declaration": true,
"outDir": "dist",
},
"include": ["src/*.ts", "src/*.tsx"],
"exclude": ["node_modules", "dist", "tests"],
}