TypeScript Configuration Options
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 the TypeScript compiler:
â | { |
â | â"compilerOptions"â: { |
â | â"declaration"â: âfalseâ, |
â | â"emitDecoratorMetadata"â: âtrueâ, |
â | â"experimentalDecorators"â: âtrueâ, |
â | â"lib"â: [â"es2019"â, â"dom"â], |
â | â"jsx"â: â"react"â, |
â | â"module"â: â"es6"â, |
â | â"moduleResolution"â: â"node"â, |
â | â"baseUrl"â: â"."â, |
â | â"paths"â: { |
â | â"*"â: [â"node_modules/*"â, â"app/packs/*"â] |
â | }, |
â | â"sourceMap"â: âtrueâ, |
â ... |
Get Modern Front-End Development for Rails, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.