Tweak how filePath is resolved to work with lodash-node.

This commit is contained in:
John-David Dalton
2013-09-01 19:25:19 -05:00
parent 360c53d6ca
commit 03041f87c3

View File

@@ -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;
}