From 7722b6283828d2e8f1b6971ba924a5ce956eb0be Mon Sep 17 00:00:00 2001 From: Andrey Rublev Date: Tue, 8 Mar 2016 03:21:45 +0600 Subject: [PATCH] actualize rootRelativePath too --- src/file-system-loader.js | 2 ++ 1 file changed, 2 insertions(+) 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) {} }