Skip to content

Commit 9bca983

Browse files
flackrisadams
authored andcommitted
Fix module detection
1 parent 01532ce commit 9bca983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/.wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
(function(root, factory) {
2323
if (typeof define === 'function' && define.amd) {
2424
define(['jquery','sifter','microplugin'], factory);
25-
} else if (typeof exports === 'object') {
25+
} else if (typeof module === 'object' && typeof module.exports === 'object') {
2626
module.exports = factory(require('jquery'), require('sifter'), require('microplugin'));
2727
} else {
2828
root.Selectize = factory(root.jQuery, root.Sifter, root.MicroPlugin);
@@ -33,4 +33,4 @@
3333
@@js
3434

3535
return Selectize;
36-
}));
36+
}));

0 commit comments

Comments
 (0)