-
-
Notifications
You must be signed in to change notification settings - Fork 179
feat(uglify): add missing toplevel
, nameCache
, keep_classnames
, keep_fnames
and safari10
options (uglifyOptions
)
#229
Conversation
toplevel
, nameCache
, keep_classnames
, keep_fnames
and safari10
minify optionstoplevel
, nameCache
, keep_classnames
, keep_fnames
and safari10
options (uglifyOptions
)
|**`ecma`**|`{Number}`|`undefined`|Supported ECMAScript Version (`5`, `6`, `7` or `8`). Affects `parse`, `compress` && `output` options| | ||
|**`warnings`**|`{Boolean}`|`false`|Display Warnings| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**[warnings](#warnings)**
(if there is a link, otherwise ignore)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No link
README.md
Outdated
|**`nameCache`**|`{Object}`|`null`|Enable cache of mangled variable and property names across multiple invocations| | ||
|**`ie8`**|`{Boolean}`|`false`|Enable IE8 Support| | ||
|**`keep_classnames`**|`{Boolean}`|`undefined`|Enable prevent discarding or mangling of class names| | ||
|**`keep_fnames`**|`{Boolean}`|`false`| Enable prevent discarding or mangling of function names. Useful for code relying on `Function.prototype.name`. If the top level minify option `keep_classnames` is `undefined` it will be overriden with the value of the top level minify option `keep_fnames`.| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ... `keep_fnames`.
+ ... `keep_fnames`
- .
No 'final' .
in Description
README.md
Outdated
|**`ie8`**|`{Boolean}`|`false`|Enable IE8 Support| | ||
|**`keep_classnames`**|`{Boolean}`|`undefined`|Enable prevent discarding or mangling of class names| | ||
|**`keep_fnames`**|`{Boolean}`|`false`| Enable prevent discarding or mangling of function names. Useful for code relying on `Function.prototype.name`. If the top level minify option `keep_classnames` is `undefined` it will be overriden with the value of the top level minify option `keep_fnames`.| | ||
|**`safari10`**|`{Boolean}`|`false`|Enable work around Safari 10/11 bugs in loop scoping and `await`.| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- .
…names` and `safari10` minify options
da0cde5
to
ca6099a
Compare
@michael-ciniawsky done 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
toplevel
, nameCache
, keep_classnames
, keep_fnames
and safari10
options (uglifyOptions
)toplevel
, nameCache
, keep_classnames
, keep_fnames
and safari10
options (uglifyOptions
)
Released in |
Also sort options as uglify docs.
Add all options and tests. In next PR i try to implement internal cache for
nameCache
for increase perf 👍