Skip to content

Commit 65abcc3

Browse files
davidyukAkryum
authored andcommitted
fix: imports by relative path in SCSS files (#321)
Fixes 'Unknown import (file not found)' error when Vue component imports SCSS file that imports another file by relative path.
1 parent 4273607 commit 65abcc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-sass/vue-sass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function resolveImport (dependencyManager) {
1515
/* } else if (url.indexOf('{') === 0) {
1616
resolvedFilename = decodeFilePath(url) */
1717
} else {
18-
let currentDirectory = path.dirname(this.options.outFile)
18+
let currentDirectory = path.dirname(prev === 'stdin' ? this.options.outFile : prev)
1919
resolvedFilename = path.resolve(currentDirectory, url)
2020
}
2121

0 commit comments

Comments
 (0)