diff options
author | Richard van Velzen <rvanvelzen1@gmail.com> | 2015-08-07 14:11:50 +0200 |
---|---|---|
committer | Richard van Velzen <rvanvelzen1@gmail.com> | 2015-08-07 14:11:50 +0200 |
commit | d7a4a4a462f5a9ff7a902fdf277701ddd9ae77d9 (patch) | |
tree | 824ab943b3891a4a315a310e3cc5984c31d13234 | |
parent | 759b3f7d6df1cecaefd987218373ce3db3646845 (diff) | |
parent | 65ee5af78ca3ec85dee8870a452845f1a4c871f7 (diff) | |
download | tracifyjs-d7a4a4a462f5a9ff7a902fdf277701ddd9ae77d9.tar.gz tracifyjs-d7a4a4a462f5a9ff7a902fdf277701ddd9ae77d9.zip |
Merge pull request #729 from DrewML/keep_fnames_docs
Add keep_fnames compressor option to README.md
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -350,6 +350,11 @@ to set `true`; it's effectively a shortcut for `foo=true`). compressor from discarding unused function arguments. You need this for code which relies on `Function.length`. +- `keep_fnames` -- default `false`. Pass `true` to prevent the + compressor from mangling/discarding function names. Useful for code relying on + `Function.prototype.name`. + + ### The `unsafe` option It enables some transformations that *might* break code logic in certain |