mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Tweak how filePath is resolved to work with lodash-node.
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
: '../lodash.js';
|
: '../lodash.js';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return global.require('fs').realpathSync(result);
|
return typeof define == 'undefined' && require('fs').realpathSync(result);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user