Skip to content

Commit

Permalink
update uglify-es to fix regex problem (mishoo/UglifyJS#2242) and inli…
Browse files Browse the repository at this point in the history
…ne problem
  • Loading branch information
jareguo committed Dec 30, 2017
1 parent bad036f commit cc5dcab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions gulp/util/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ exports.getUglifyOptions = function (platform, isJSB, isDebugBuild) {
sequences: false,
keep_infinity: true, // reduce jsc file size
typeofs: false,
inline: false, // embed simple functions, disable temporarily due to https://github.com/mishoo/UglifyJS2/issues/2683
}
};
}
Expand All @@ -45,7 +44,6 @@ exports.getUglifyOptions = function (platform, isJSB, isDebugBuild) {
return {
compress: {
global_defs: global_defs,
inline: false // embed simple functions, disable temporarily due to https://github.com/mishoo/UglifyJS2/issues/2683
},
output: {
ascii_only: true,
Expand Down Expand Up @@ -82,7 +80,7 @@ exports.getUglifyOptions = function (platform, isJSB, isDebugBuild) {
hoist_props: false,
hoist_vars: false, // hoist variable declarations
if_return: false, // optimize if-s followed by return/continue
inline: false, // embed simple functions, disable temporarily due to https://github.com/mishoo/UglifyJS2/issues/2683
inline: false, // embed simple functions
join_vars: false, // join var declarations
collapse_vars: false, // Collapse single-use non-constant variables - side effects permitting.
reduce_funcs: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"jshint-stylish": "2.1.0",
"multipipe": "0.3.0",
"persistify": "^1.1.1",
"uglify-es": "~3.3.2",
"uglify-es": "~3.3.3",
"vinyl": "1.1.0",
"vinyl-buffer": "1.0.0",
"vinyl-source-stream": "1.0.0",
Expand Down

0 comments on commit cc5dcab

Please sign in to comment.