From 3becbfe95ff7a396a1ff22e10b8ab8500f613539 Mon Sep 17 00:00:00 2001 From: Carlo Q Date: Thu, 6 Feb 2020 19:01:47 -0800 Subject: [PATCH] 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. --- packages/vue-sass/vue-sass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-sass/vue-sass.js b/packages/vue-sass/vue-sass.js index d9550c4..21cf5e9 100644 --- a/packages/vue-sass/vue-sass.js +++ b/packages/vue-sass/vue-sass.js @@ -24,7 +24,7 @@ function resolveImport (dependencyManager) { try { // get the package.json config option and create paths for the requested file. pkg.vue.css.sass.includePaths.forEach((str) => { - importPaths.push(path.resolve(str, url)) + importPaths.push(path.resolve(str, resolvedFilename)) }) } catch (e) { // Ignore error. package.json option is not set.