June 2021
Intermediate to advanced
398 pages
9h 35m
English
At this point, I think we have all the tools we need to start discussing TypeScript configuration.
Here’s our tsconfig.json file, which controls the configuration of our compiler:
| | { |
| | "compilerOptions": { |
| | "declaration": false, |
| | "emitDecoratorMetadata": true, |
| | "experimentalDecorators": true, |
| | "lib": ["es6", "dom"], |
| | "jsx": "react", |
| | "module": "es6", |
| | "moduleResolution": "node", |
| | "baseUrl": ".", |
| | "paths": { |
| | "*": ["node_modules/*", "app/packs/*"] |
| | }, |
| | "sourceMap": true, |
| | "target": "es5", |
| | "noEmit": true |
| | }, |
| | "exclude": ["**/*.spec.ts", "node_modules", "vendor", "public"], |
| | "compileOnSave": false |