DEV Community


Posted on • Originally published at 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!

Discussion (0)