document the new output option safari10 (#2529)

This commit is contained in:
kzc
2017-11-28 13:29:23 -05:00
committed by Alex Lam S.L
parent aacf760fb4
commit 1646c5844f

View File

@@ -815,6 +815,7 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u
- `safari10` (default `false`) -- Pass `true` to work around the Safari 10 loop - `safari10` (default `false`) -- Pass `true` to work around the Safari 10 loop
iterator [bug](https://bugs.webkit.org/show_bug.cgi?id=171041) iterator [bug](https://bugs.webkit.org/show_bug.cgi?id=171041)
"Cannot declare a let variable twice". "Cannot declare a let variable twice".
See also: the `safari10` [output option](#output-options).
Examples: Examples:
@@ -914,6 +915,10 @@ can pass additional arguments that control the code output:
- `2` -- always use double quotes - `2` -- always use double quotes
- `3` -- always use the original quotes - `3` -- always use the original quotes
- `safari10` (default `false`) -- set this option to `true` to work around
the [Safari 10/11 await bug](https://bugs.webkit.org/show_bug.cgi?id=176685).
See also: the `safari10` [mangle option](#mangle-options).
- `semicolons` (default `true`) -- separate statements with semicolons. If - `semicolons` (default `true`) -- separate statements with semicolons. If
you pass `false` then whenever possible we will use a newline instead of a you pass `false` then whenever possible we will use a newline instead of a
semicolon, leading to more readable output of uglified code (size before semicolon, leading to more readable output of uglified code (size before