Skip to content

Commit

Permalink
UMD: Better support for CommonJS.
Browse files Browse the repository at this point in the history
Closes #1838. Fixes #1829, #1834.
  • Loading branch information
ryanbrandenburg authored and staabm committed Sep 1, 2016
1 parent 8cb072c commit ecf54e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ umdMiddle = "\t} else if (typeof module === \"object\" && module.exports) {\n" +
"\t}\n" +
"}(function( $ ) {\n\n";

umdEnd = "\n}));";
umdEnd = "return $;" +
"\n}));";

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

0 comments on commit ecf54e0

Please sign in to comment.