diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-27 05:32:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-27 13:32:18 +0800 |
commit | a8785fb6943e9cf8e370e19f29945e544b3be4b2 (patch) | |
tree | f3bd80c716943b98345ba885c6c34795b61ac6cd /README.md | |
parent | dd6d7b3d88072bebdd21fedc10abd6e04ff7d094 (diff) | |
download | tracifyjs-a8785fb6943e9cf8e370e19f29945e544b3be4b2.tar.gz tracifyjs-a8785fb6943e9cf8e370e19f29945e544b3be4b2.zip |
workaround v8 bug with labels (#4467)
closes #4466
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -135,6 +135,10 @@ a double dash to prevent input files being used as option arguments: `//# sourceMappingURL`. --timings Display operations run time on STDERR. --toplevel Compress and/or mangle variables in top level scope. + --v8 Support non-standard Chrome & Node.js + Equivalent to setting `v8: true` in `minify()` + for `mangle` and `output` options. + By default UglifyJS will not try to be v8-proof. --verbose Print diagnostic messages. --warn Print warning messages. --webkit Support non-standard Safari/Webkit. @@ -522,6 +526,8 @@ if (result.error) throw result.error; - `toplevel` (default `false`) -- set to `true` if you wish to enable top level variable and function name mangling and to drop unused variables and functions. +- `v8` (default `false`) -- enable workarounds for Chrome & Node.js bugs. + - `warnings` (default `false`) — pass `true` to return compressor warnings in `result.warnings`. Use the value `"verbose"` for more detailed warnings. @@ -921,8 +927,6 @@ can pass additional arguments that control the code output: - `shebang` (default `true`) -- preserve shebang `#!` in preamble (bash scripts) -- `v8` (default `false`) -- enable workarounds for Chrome & Node.js bugs - - `width` (default `80`) -- only takes effect when beautification is on, this specifies an (orientative) line width that the beautifier will try to obey. It refers to the width of the line text (excluding indentation). |