diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-04-15 22:23:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-15 22:23:11 +0800 |
commit | 5172ba5f2ade22716e65ff2333218fc08996bfcc (patch) | |
tree | f5d5084980b543c64b7fedd1c233eb8b4414ddb2 /README.md | |
parent | a57b069409d84e3768dfd8e786532e458f68e553 (diff) | |
download | tracifyjs-5172ba5f2ade22716e65ff2333218fc08996bfcc.tar.gz tracifyjs-5172ba5f2ade22716e65ff2333218fc08996bfcc.zip |
introduce `functions` (#3360)
`var f = function() {};` => `function f() {}`
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -636,6 +636,9 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u - `expression` (default: `false`) -- Pass `true` to preserve completion values from terminal statements without `return`, e.g. in bookmarklets. +- `functions` (default: `true`) -- convert declarations from `var`to `function` + whenever possible. + - `global_defs` (default: `{}`) -- see [conditional compilation](#conditional-compilation) - `hoist_funs` (default: `false`) -- hoist function declarations |