How devtools map minified JS code back to your TypeScript source code

manojvivek | 89 points

Recent related post where Apple seemingly forgot to disable source maps for the App Store

Apple's App Store Full Front End Source Code

https://news.ycombinator.com/item?id=45804664

edit: formatting

pseufaux | 31 minutes ago

I love it when things are displayed so nicely on mobile. This could've been a pain to read and get through but it was actually quite pleasant.

kayson | 14 hours ago

> Notice how the decoded values give relative positions, each value represents the difference from the previous position, not absolute coordinates. This is crucial: instead of encoding large column numbers like 27698 in minified files, source maps only store small deltas like +7 or +15, making the encoded strings much more compact.

Wouldn't "offset" be a more apt term?

tantalor | a day ago

Tangentially related, but last year I've made a tool to recover original sources from web apps which expose source maps (with the sourcesContent value present), including enumerating all lazily loaded chunks:

https://github.com/zb3/getfrontend

zb3 | 21 hours ago