0

I wrote a web page using Angular 2 and Typescript. When I opened Firefox Web Console, and I tried to find the .ts file in order to debug it, all I found is the Javascript file that was 'transpiled' from the original .ts file.

In Chrome, it's possible to see the Typescript file in the Developer Tools and debug it. Is it also possible in FF ?

1

1 Answer 1

0

Yes. You need to create the .map files when transpiling from TypeScript to Javascript. Just include the property "sourceMap": true in the compilerOptions in your tsconfig.json and you're done!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.