Skip to content

Commit 1046b6d

Browse files
raphamorimgnarf
authored andcommitted
support commonjs
1 parent bc15d71 commit 1046b6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jquery.color.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
if (typeof define === 'function' && define.amd) {
1414
// AMD. Register as an anonymous module.
1515
define(['jquery'], factory);
16+
} else if (typeof exports === 'object') {
17+
module.exports = factory(require('jquery'));
1618
} else {
1719
factory(root.jQuery);
1820
}

0 commit comments

Comments
 (0)