aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-04-15 22:23:11 +0800
committerGitHub <noreply@github.com>2019-04-15 22:23:11 +0800
commit5172ba5f2ade22716e65ff2333218fc08996bfcc (patch)
treef5d5084980b543c64b7fedd1c233eb8b4414ddb2 /README.md
parenta57b069409d84e3768dfd8e786532e458f68e553 (diff)
downloadtracifyjs-5172ba5f2ade22716e65ff2333218fc08996bfcc.tar.gz
tracifyjs-5172ba5f2ade22716e65ff2333218fc08996bfcc.zip
introduce `functions` (#3360)
`var f = function() {};` => `function f() {}`
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1be2d2e8..bf8fbd23 100644
--- a/README.md
+++ b/README.md
@@ -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