]> source.dussan.org Git - jquery.git/commitdiff
Build: Fix UglifyJS output in Android 4.0; update uglify
authorTimmy Willison <4timmywil@gmail.com>
Wed, 3 Jan 2018 17:19:37 +0000 (12:19 -0500)
committerTimmy Willison <4timmywil@gmail.com>
Mon, 8 Jan 2018 16:48:24 +0000 (11:48 -0500)
- Thanks to @mgol for first pass

Fixes gh-3743
Close gh-3920

Gruntfile.js
package.json

index 19e94fad7acefc36763ef8d7cfbe068bb1c00fa4..431e87557748c7d12ba5a208e1d56c04e7c88e68 100644 (file)
@@ -246,7 +246,12 @@ module.exports = function( grunt ) {
                                                "dist/<%= grunt.option('filename').replace('.js', '.min.map') %>",
                                        report: "min",
                                        output: {
-                                               "ascii_only": true
+                                               "ascii_only": true,
+
+                                               // Support: Android 4.0 only
+                                               // UglifyJS 3 breaks Android 4.0 if this option is not enabled.
+                                               // This is in lieu of setting ie8 for all of mangle, compress, and output
+                                               "ie8": true
                                        },
                                        banner: "/*! jQuery v<%= pkg.version %> | " +
                                                "(c) JS Foundation and other contributors | jquery.org/license */",
index 53ea4f7ebc638daf69312a4ac0f369767ea83994..091f1c992e95c53d15ac3f6ccf8693df94cb868b 100644 (file)
@@ -63,7 +63,7 @@
     "sizzle": "2.3.3",
     "strip-json-comments": "2.0.1",
     "testswarm": "1.1.0",
-    "uglify-js": "3.0.24"
+    "uglify-js": "3.3.4"
   },
   "scripts": {
     "build": "npm install && grunt",