add note on debugging with source maps

This commit is contained in:
Dan Wolff 2018-02-05 21:30:46 +01:00
parent b3128f0b6d
commit 46f893bda0

View File

@ -1117,3 +1117,11 @@ To allow for better optimizations, the compiler makes various assumptions.
- Object properties are able to be added (not prevented with - Object properties are able to be added (not prevented with
`Object.defineProperty()`, `Object.defineProperties()`, `Object.freeze()`, `Object.defineProperty()`, `Object.defineProperties()`, `Object.freeze()`,
`Object.preventExtensions()` or `Object.seal()`). `Object.preventExtensions()` or `Object.seal()`).
### Source maps and debugging
Various `compress` transforms that simplify, rearrange, inline and remove code
are known to have an adverse effect on debugging with source maps. This is
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 Uglify `compress` option and just use `mangle`.