Earlier quoted context omitted.
Offset is difference from a starting point or a previous position
“Offset” is not enough on its own. Offset from what? Start of file? Absolute offset. Previous offset? Relative offset.
How devtools map minified JS code back to your TypeScript source code
11–18 of 18 posts
Re: How devtools map minified JS code back to your TypeScript source code
#12> 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?
Delta is perhaps slightly more obscure outside of a math setting. Perhaps.
Re: How devtools map minified JS code back to your TypeScript source code
#13Re: How devtools map minified JS code back to your TypeScript source code
#14> 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?
Delta Encoding is the common term
Re: How devtools map minified JS code back to your TypeScript source code
#15Re: How devtools map minified JS code back to your TypeScript source code
#16> 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?
Delta and offset mean the same thing — the difference between two amounts. Delta is perhaps slightly more obscure outside of a math setting. Perhaps.
Re: How devtools map minified JS code back to your TypeScript source code
#17Apple's App Store Full Front End Source Code
https://news.ycombinator.com/item?id=45804664
edit: formatting