From 63caa7d07bede5efa86f638858b3f54b5739b727 Mon Sep 17 00:00:00 2001 From: Petyo Ivanov Date: Wed, 20 Jan 2016 14:40:19 +0200 Subject: [PATCH] Fix jquery module ref Fix telerik/kendo-ui-core#1380 --- build/gulp/uglify.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"` + }); }