mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
ef40dbbc4d
commit
0bf499ca24
10
Gruntfile.js
10
Gruntfile.js
@ -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
3186
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user