Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Learn TypeScript 3 by Building Web Applications

You're reading from   Learn TypeScript 3 by Building Web Applications Gain a solid understanding of TypeScript, Angular, Vue, React, and NestJS

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher Packt
ISBN-13 9781789615869
Length 804 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
 Dubois Dubois
Author Profile Icon Dubois
Dubois
 Georges Georges
Author Profile Icon Georges
Georges
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Introduction to TypeScript 2. Building TodoIt - Your Own Web Application with TypeScript FREE CHAPTER 3. Improving TodoIt with Classes and Interfaces 4. Leveraging Generics and Enums 5. Coding WorldExplorer to Explore the Population of the World 6. Introduction to Testing 7. Discovering Angular, Angular Material, and RxJS 8. Rewriting MediaMan Using Angular and Angular Material 9. Introducing Vue.js 10. Creating LyricsFinder with Vue.js 11. Diving into React, NestJS, GraphQL, and Apollo 12. Revisiting LyricsFinder 13. What's Next? 14. Other Books You May Enjoy

Generating source maps for easier debugging

One thing that you might have noticed while we were using the debugging in the web browser before is that we only had access to the JavaScript code (as opposed to the TypeScript code when debugging with VS Code directly). In our case, with TodoIt, it is okay because the program is very simple, and so it remains intuitive. But in larger applications, this will simply not be usable.

This is why a feature called source maps is really, really valuable. Source maps are mapping files that create the link between lines in the JavaScript sources and the corresponding ones in the original source code (TypeScript source code, in our case).

Source maps can either be stored in the JavaScript files themselves, in which case, they are called inline source maps or in the separate (that is, external) .map files.

We won't dive much more into the...

You have been reading a chapter from
Learn TypeScript 3 by Building Web Applications
Published in: Nov 2019
Publisher: Packt
ISBN-13: 9781789615869
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon