Skip to content

Commit 3ad2811

Browse files
L8Dljharb
authored andcommitted
Use fs.realpathSync in resolved files to support linked packages
1 parent 5f6e682 commit 3ad2811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sync.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ module.exports = function (x, options) {
4343

4444
function loadAsFileSync(x) {
4545
if (isFile(x)) {
46-
return x;
46+
return fs.realpathSync(x);
4747
}
4848

4949
for (var i = 0; i < extensions.length; i++) {
5050
var file = x + extensions[i];
5151
if (isFile(file)) {
52-
return file;
52+
return fs.realpathSync(file);
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)