Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Add note about termination of mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra authored Feb 14, 2024
1 parent fbcf32f commit cbaab29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source-map-rev3.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ Note: This encoding reduces the source map size 50% relative to the V2 format in
If the sources are not absolute URLs after prepending of the “sourceRoot”, the sources are resolved relative to the SourceMap (like resolving script src in a html document).


#### Termination

Since source map mappings only map locations and not ranges, looking up chars in the generated code will usually lead to the previous mapping within that line. If this is not indended for a range in the generated code, it's possible to "terminate" mappings by inserting mappings without original location.


#### Encoding

For simplicity, the character set encoding is always UTF-8.
Expand Down

0 comments on commit cbaab29

Please sign in to comment.