diff --git a/jquery.color.js b/jquery.color.js index 98c6dd1..4ed6f70 100644 --- a/jquery.color.js +++ b/jquery.color.js @@ -13,6 +13,8 @@ if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); + } else if (typeof exports === 'object') { + module.exports = factory(require('jquery')); } else { factory(root.jQuery); }