Build: fix uglify options for uglify update

- Uses new typeofs option for compression
- See https://github.com/mishoo/UglifyJS2/issues/2198

Close gh-3710
This commit is contained in:
Timmy Willison 2017-07-03 14:25:32 -04:00
parent ef40dbbc4d
commit 0bf499ca24
No known key found for this signature in database
GPG Key ID: 5F0C8B73EF56CE6F
3 changed files with 1912 additions and 1287 deletions

View File

@ -159,11 +159,10 @@ module.exports = function( grunt ) {
options: {
preserveComments: false,
sourceMap: true,
ASCIIOnly: true,
sourceMapName:
"dist/<%= grunt.option('filename').replace('.js', '.min.map') %>",
report: "min",
beautify: {
output: {
"ascii_only": true
},
banner: "/*! jQuery v<%= pkg.version %> | " +
@ -171,7 +170,12 @@ module.exports = function( grunt ) {
compress: {
"hoist_funs": false,
loops: false,
unused: false
unused: false,
// Support: IE <11
// typeofs transformation is unsafe for IE9-10
// See https://github.com/mishoo/UglifyJS2/issues/2198
typeofs: false
}
}
}

3186
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -55,7 +55,8 @@
"sinon": "2.3.7",
"sizzle": "2.3.3",
"strip-json-comments": "2.0.1",
"testswarm": "1.1.0"
"testswarm": "1.1.0",
"uglify-js": "3.0.24"
},
"scripts": {
"build": "npm install && grunt",