diff --git a/build/gulp/uglify.js b/build/gulp/uglify.js index 8c64ead4af3..518f1974aa7 100644 --- a/build/gulp/uglify.js +++ b/build/gulp/uglify.js @@ -18,7 +18,9 @@ var mangle = { }; function renameModules(match) { - return match.replace(/['"]([\w\.\-\/]+)?['"]/g, '"$1.min"'); + return match.replace(/['"]([\w\.\-\/]+)?['"]/g, function(_, module) { + return module == "jquery" ? '"jquery"' : `"${module}.min"` + }); }