Skip to content

Commit 9d880a8

Browse files
committed
Pass correct from arg for resolved files
Pass correct 'from' parameter to postcss for files which resolved via `nodeResolve.sync` Incorrect source path leads to wrong names which postcss-plugin-scope generates for example
1 parent 1109029 commit 9d880a8

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 = fileRelativePath;
7577
} catch (e) {}
7678
}
7779

0 commit comments

Comments
 (0)