introduce hoist_exports (#4651)

This commit is contained in:
Alex Lam S.L
2021-02-15 01:01:18 +00:00
committed by GitHub
parent c21f096ab8
commit 203ca2586a
3 changed files with 74 additions and 1 deletions

View File

@@ -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