From 1885f91f132ffe313d22aa52d1e8220a3a958155 Mon Sep 17 00:00:00 2001 From: kzc Date: Tue, 28 Nov 2017 16:48:33 -0500 Subject: [PATCH] document top level `minify()` option `safari10` (#2532) --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 70018d47..a4b09fcd 100644 --- a/README.md +++ b/README.md @@ -523,6 +523,10 @@ if (result.error) throw result.error; top level minify option `keep_classnames` is `undefined` it will be overriden with the value of the top level minify option `keep_fnames`. +- `safari10` (default: `false`) - pass `true` to work around Safari 10/11 bugs in + loop scoping and `await`. See `safari10` options in [`mangle`](#mangle-options) + and [`output`](#output-options) for details. + ## Minify options structure ```javascript @@ -547,11 +551,12 @@ if (result.error) throw result.error; // source map options }, ecma: 5, // specify one of: 5, 6, 7 or 8 - nameCache: null, // or specify a name cache object - toplevel: false, keep_classnames: false, keep_fnames: false, ie8: false, + nameCache: null, // or specify a name cache object + safari10: false, + toplevel: false, warnings: false, } ```