Skip to content

Commit 1fa16ac

Browse files
satyavhgaearon
authored andcommitted
Make uglify work in Safari 10.0 - fixes #3280 (#3281)
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
1 parent 8c7b6e7 commit 1fa16ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-scripts/config/webpack.config.prod.js

+3
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ module.exports = {
299299
// https://github.com/mishoo/UglifyJS2/issues/2011
300300
comparisons: false,
301301
},
302+
mangle: {
303+
safari10: true,
304+
},
302305
output: {
303306
comments: false,
304307
// Turned on because emoji and regex is not minified properly using default

0 commit comments

Comments
 (0)