Debug Angular apps in production without revealing source maps

kreuzerk profile image kreuzerk Originally published at blog.angularindepth.com on ・1 min read

Alternate approaches to handle source maps

When our app gets deployed to production we often encounter a different code than the one we edited during development. Our code get’s modified and optimized during the build process.

TypeScript gets transpiled, minified and uglifed. The resulting bundle is as small as possible and able to run in the Browser.

All those concepts are great because they improve the performance of our application. But we are looking at JavaScript that is hard to read and impedes debugging.

But there’s a solution. source maps!

Find out how you can enable source maps without revealing them!


Editor guide