From eb3ec1c597c9c01d1c1f63937e4010c1c0b1e9b3 Mon Sep 17 00:00:00 2001 From: Satya van Heummen Date: Sat, 14 Oct 2017 21:06:55 +0200 Subject: [PATCH] Make uglify work in Safari 10.0 - fixes #3280 Implement settings as suggested here: https://github.com/mishoo/UglifyJS2/tree/harmony#mangle-options To solve this Safari bug: https://bugs.webkit.org/show_bug.cgi?id=171041 --- packages/react-scripts/config/webpack.config.prod.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index 124d5b3cbe..23708af5ae 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -299,6 +299,9 @@ module.exports = { // https://github.com/mishoo/UglifyJS2/issues/2011 comparisons: false, }, + mangle: { + safari10: true, + }, output: { comments: false, // Turned on because emoji and regex is not minified properly using default