From fa610da68440530e73bba296a1f982f94dfeac99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski?= Date: Sat, 23 Apr 2016 20:30:00 +0200 Subject: [PATCH] Build: Workaround strict mode violations caused by UglifyJS This commit increases the gzipped size by 90 bytes so a better solution is needed but, at the same time, it disables the very optimizations that are causing strict mode violations in Firefox 45, Safari 9 & IE 10. Refs 76084372c29a59b3fa790ea4d2687f0767514999 Refs mishoo/UglifyJS2#1052 --- Gruntfile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Gruntfile.js b/Gruntfile.js index c979f2822..04ccb7c3f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -186,6 +186,7 @@ module.exports = function( grunt ) { banner: "/*! jQuery v<%= pkg.version %> | " + "(c) jQuery Foundation | jquery.org/license */", compress: { + "if_return": false, "hoist_funs": false, loops: false, unused: false -- 2.39.5