mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Make the exports system include the wrapper function in node.js
This commit is contained in:
@@ -25,7 +25,12 @@
|
||||
var _ = root._ = function(obj) { return new wrapper(obj); };
|
||||
|
||||
// Export the Underscore object for CommonJS.
|
||||
if (typeof exports !== 'undefined') _ = exports;
|
||||
if (module && typeof module.exports !== 'undefined') {
|
||||
// richer binding for systems that allow it (node.js for example)
|
||||
module.exports = _;
|
||||
} else {
|
||||
if (typeof exports !== 'undefined') _ = exports;
|
||||
}
|
||||
|
||||
// Current version.
|
||||
_.VERSION = '0.4.2';
|
||||
|
||||
Reference in New Issue
Block a user