From 0043c60c7deea723187e4f4fc17f36cfd13c1dec Mon Sep 17 00:00:00 2001 From: kzc Date: Tue, 17 Oct 2017 13:36:06 -0400 Subject: [PATCH] docs: order mangle options --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b763ba54..6aeeb739 100644 --- a/README.md +++ b/README.md @@ -772,21 +772,21 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u ## Mangle options +- `eval` (default `false`). Pass `true` to mangle names visible in scopes + where `eval` or `with` are used. + +- `keep_classnames` (default `false`). Pass `true` to not mangle class names. + - `keep_fnames` (default `false`). Pass `true` to not mangle function names. Useful for code relying on `Function.prototype.name`. See also: the `keep_fnames` [compress option](#compress-options). -- `keep_classnames` (default `false`). Pass `true` to not mangle class names. - - `reserved` (default `[]`). Pass an array of identifiers that should be excluded from mangling. Example: `["foo", "bar"]`. - `toplevel` (default `false`). Pass `true` to mangle names declared in the top level scope. -- `eval` (default `false`). Pass `true` to mangle names visible in scopes - where `eval` or `with` are used. - - `safari10` (default `false`). Pass `true` to work around the Safari 10 loop iterator [bug](https://bugs.webkit.org/show_bug.cgi?id=171041) "Cannot declare a let variable twice".