DEV Community

kreuzerk
kreuzerk

Posted on • Originally published at blog.angularindepth.com on

Debug Angular apps in production without revealing source maps

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!

Top comments (0)