Skip to content

Commit

Permalink
Define decoding algorithms for source maps
Browse files Browse the repository at this point in the history
This PR introduces "decoded source map" data structures, which are
internal spec representations of the information encoded in source maps.

It also defines algorithms to decode source maps from either a JSON
string or [infra](https://infra.spec.whatwg.org/) representation.

The goal is:
- use them to explicitly write down all the possible error cases
- use them as a starting point to define new data structures, for
  example for the scopes proposal
- eventually add algorithms such as "get the original location given a
  decoded source map and a generated location".

This PR also explicitly defines sources/sourceRoot resolution in terms
of the [WHATWG URL](https://url.spec.whatwg.org/) spec.
  • Loading branch information
nicolo-ribaudo committed Aug 8, 2024
1 parent afb0b37 commit 41fa6a6
Showing 1 changed file with 288 additions and 25 deletions.
Loading

0 comments on commit 41fa6a6

Please sign in to comment.