Skip to content

Commit cb519ce

Browse files
committed
Merge pull request #89 from anru/patch-1
Pass correct `from` arg for resolved files
2 parents 1109029 + 5af2f7a commit cb519ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

file-system-loader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ var FileSystemLoader = (function () {
7272
if (newPath[0] !== '.' && newPath[0] !== '/') {
7373
try {
7474
fileRelativePath = nodeResolve.sync(newPath, { basedir: rootRelativeDir });
75+
// in this case we need to actualize rootRelativePath too
76+
rootRelativePath = _path2['default'].relative(_this.root, fileRelativePath);
7577
} catch (e) {}
7678
}
7779

0 commit comments

Comments
 (0)