angular - What makes it possible to debug typescript in chrome? -
what makes possible debug typescript in chrome when browser understands javascript? debug typescript files in angular project created using angular cli chrome developers tool, don't know reason how able debug typescript files. can explain me?
angular cli uses webpack. when webpack transpiles ts js, can be configured (and default) generate source maps well. how chrome able tie javascript code typescript debugging.
example tsconfig.json generated angular cli:
{ "compileonsave": false, "compileroptions": { "outdir": "./dist/out-tsc", "baseurl": "src", "sourcemap": true, <--- right here "declaration": false, "moduleresolution": "node", "emitdecoratormetadata": true, "experimentaldecorators": true, "target": "es5", "typeroots": [ "node_modules/@types" ], "lib": [ "es2016", "dom" ] } }
Comments
Post a Comment