Skip to content

Commit 7722b62

Browse files
committed
actualize rootRelativePath too
1 parent 03a680d commit 7722b62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/file-system-loader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export default class FileSystemLoader {
4242
if (newPath[0] !== '.' && newPath[0] !== '/') {
4343
try {
4444
fileRelativePath = nodeResolve.sync(newPath, { basedir: rootRelativeDir });
45+
// in this case we need to actualize rootRelativePath too
46+
rootRelativePath = fileRelativePath;
4547
}
4648
catch (e) {}
4749
}

0 commit comments

Comments
 (0)