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