Skip to content

Commit d552fde

Browse files
committed
Fix mistic100#487 Temporary fix CommonJS loader
1 parent ed5f6b4 commit d552fde

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"url": "http://www.strangeplanet.fr"
88
},
99
"description": "jQuery plugin for user friendly query/filter creator",
10+
"main": "dist/js/query-builder.js",
1011
"dependencies": {
1112
"jquery": ">=1.9.0",
1213
"bootstrap": ">=3.1.0",

src/.wrapper.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
(function(root, factory) {
22
if (typeof define == 'function' && define.amd) {
3-
define(['jquery', 'doT', 'jQuery.extendext'], factory);
3+
define(['jquery', 'dot/doT', 'jquery-extendext'], factory);
4+
}
5+
else if (typeof module === 'object' && module.exports) {
6+
module.exports = factory(require('jquery'), require('dot/doT'), require('jquery-extendext'));
47
}
58
else {
69
factory(root.jQuery, root.doT);
@@ -10,4 +13,6 @@
1013

1114
@@js
1215

13-
}));
16+
return QueryBuilder;
17+
18+
}));

0 commit comments

Comments
 (0)