diff --git a/src/file-system-loader.js b/src/file-system-loader.js index 299a2b2..636e7aa 100644 --- a/src/file-system-loader.js +++ b/src/file-system-loader.js @@ -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) {} }