Skip to content

Commit

Permalink
Add information about map scopes (#1368)
Browse files Browse the repository at this point in the history
* Add information about map scopes

* Move "map scopes" info
  • Loading branch information
olfek committed Apr 6, 2023
1 parent 36324f1 commit 4af1d64
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -1271,6 +1271,12 @@ expected as code is optimized and mappings are often simply not possible as
some code no longer exists. For highest fidelity in source map debugging
disable the `compress` option and just use `mangle`.

When debugging, make sure you enable the **"map scopes"** feature to map mangled variable names back to their original names.
Without this, all variable values will be `undefined`. See https://github.com/terser/terser/issues/1367 for more details.
<br/><br/>

![image](https://user-images.githubusercontent.com/27283110/230441652-ac5cf6b0-5dc5-4ffc-9d8b-bd02875484f4.png)

### Compiler assumptions

To allow for better optimizations, the compiler makes various assumptions:
Expand Down

0 comments on commit 4af1d64

Please sign in to comment.