Skip to content

Commit ecf54e0

Browse files
ryanbrandenburgstaabm
authored andcommitted
UMD: Better support for CommonJS.
Closes jquery-validation#1838. Fixes jquery-validation#1829, jquery-validation#1834.
1 parent 8cb072c commit ecf54e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Gruntfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ umdMiddle = "\t} else if (typeof module === \"object\" && module.exports) {\n" +
3232
"\t}\n" +
3333
"}(function( $ ) {\n\n";
3434

35-
umdEnd = "\n}));";
35+
umdEnd = "return $;" +
36+
"\n}));";
3637

3738
umdStandardDefine = "\t\tdefine( [\"jquery\"], factory );\n";
3839
umdAdditionalDefine = "\t\tdefine( [\"jquery\", \"./jquery.validate\"], factory );\n";

0 commit comments

Comments
 (0)