Skip to content

Commit

Permalink
actualize rootRelativePath too
Browse files Browse the repository at this point in the history
  • Loading branch information
anru committed Mar 7, 2016
1 parent 03a680d commit 7722b62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/file-system-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export default class FileSystemLoader {
if (newPath[0] !== '.' && newPath[0] !== '/') {
try {
fileRelativePath = nodeResolve.sync(newPath, { basedir: rootRelativeDir });
// in this case we need to actualize rootRelativePath too
rootRelativePath = fileRelativePath;
}
catch (e) {}
}
Expand Down

0 comments on commit 7722b62

Please sign in to comment.