aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-02-15 01:01:18 +0000
committerGitHub <noreply@github.com>2021-02-15 09:01:18 +0800
commit203ca2586a759ac2fce057e80ae9195d28ef247e (patch)
treee79bd4439583213094b46fc144e0919f07678100 /README.md
parentc21f096ab882dc37771375c4eadafe61a3e6ac51 (diff)
downloadtracifyjs-203ca2586a759ac2fce057e80ae9195d28ef247e.tar.gz
tracifyjs-203ca2586a759ac2fce057e80ae9195d28ef247e.zip
introduce `hoist_exports` (#4651)
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 09da3aeb..ca2ddee1 100644
--- a/README.md
+++ b/README.md
@@ -667,11 +667,14 @@ to be `false` and all symbol names will be omitted.
- `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`
+- `functions` (default: `true`) -- convert declarations from `var` to `function`
whenever possible.
- `global_defs` (default: `{}`) -- see [conditional compilation](#conditional-compilation)
+- `hoist_exports` (default: `true`) -- hoist `export` statements to facilitate
+ various `compress` and `mangle` optimizations.
+
- `hoist_funs` (default: `false`) -- hoist function declarations
- `hoist_props` (default: `true`) -- hoist properties from constant object and