Skip to content

Commit

Permalink
Fix #487 Temporary fix CommonJS loader
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed May 17, 2017
1 parent ed5f6b4 commit d552fde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"url": "http://www.strangeplanet.fr"
},
"description": "jQuery plugin for user friendly query/filter creator",
"main": "dist/js/query-builder.js",
"dependencies": {
"jquery": ">=1.9.0",
"bootstrap": ">=3.1.0",
Expand Down
9 changes: 7 additions & 2 deletions src/.wrapper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
(function(root, factory) {
if (typeof define == 'function' && define.amd) {
define(['jquery', 'doT', 'jQuery.extendext'], factory);
define(['jquery', 'dot/doT', 'jquery-extendext'], factory);
}
else if (typeof module === 'object' && module.exports) {
module.exports = factory(require('jquery'), require('dot/doT'), require('jquery-extendext'));
}
else {
factory(root.jQuery, root.doT);
Expand All @@ -10,4 +13,6 @@

@@js

}));
return QueryBuilder;

}));

0 comments on commit d552fde

Please sign in to comment.