Skip to content

Commit

Permalink
Emit source mappings during JS generation
Browse files Browse the repository at this point in the history
Summary:
To avoid emitting the same mapping twice or emitting wrong mappings,
emit segments for the source map in specific cases of the `match`.
For now, we emit for every literal and identifier,
as well as specific keywords such as `return`, `if`, etc.

Reviewed By: tmikov

Differential Revision: D31172158

fbshipit-source-id: 3b7f5778ecc5dbe2e49b9dac7e41ee1100a9cc8c
  • Loading branch information
avp authored and facebook-github-bot committed Sep 28, 2021
1 parent 47f5c5a commit ecc20aa
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 0 deletions.
Loading

0 comments on commit ecc20aa

Please sign in to comment.