Skip to content

Commit 3becbfe

Browse files
authored
Strip ~ from path when checking additional paths
If additional paths are configured in the package.json, the `~` is not stripped from the path before searching for the file.
1 parent 2e8b2ef commit 3becbfe

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
@@ -24,7 +24,7 @@ function resolveImport (dependencyManager) {
2424
try {
2525
// get the package.json config option and create paths for the requested file.
2626
pkg.vue.css.sass.includePaths.forEach((str) => {
27-
importPaths.push(path.resolve(str, url))
27+
importPaths.push(path.resolve(str, resolvedFilename))
2828
})
2929
} catch (e) {
3030
// Ignore error. package.json option is not set.

0 commit comments

Comments
 (0)