🌐 AI搜索 & 代理 主页
Skip to content

Commit 0bf499c

Browse files
committed
Build: fix uglify options for uglify update
- Uses new typeofs option for compression - See mishoo/UglifyJS#2198 Close gh-3710
1 parent ef40dbb commit 0bf499c

File tree

3 files changed

+1918
-1293
lines changed

3 files changed

+1918
-1293
lines changed

Gruntfile.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,23 @@ module.exports = function( grunt ) {
159159
options: {
160160
preserveComments: false,
161161
sourceMap: true,
162-
ASCIIOnly: true,
163162
sourceMapName:
164163
"dist/<%= grunt.option('filename').replace('.js', '.min.map') %>",
165164
report: "min",
166-
beautify: {
165+
output: {
167166
"ascii_only": true
168167
},
169168
banner: "/*! jQuery v<%= pkg.version %> | " +
170169
"(c) JS Foundation and other contributors | jquery.org/license */",
171170
compress: {
172171
"hoist_funs": false,
173172
loops: false,
174-
unused: false
173+
unused: false,
174+
175+
// Support: IE <11
176+
// typeofs transformation is unsafe for IE9-10
177+
// See https://github.com/mishoo/UglifyJS2/issues/2198
178+
typeofs: false
175179
}
176180
}
177181
}

0 commit comments

Comments
 (0)