Skip to content

Commit

Permalink
include paths Scss compiler Error: Invalid URL: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
illusionfield committed Feb 28, 2025
1 parent 3e41094 commit 092e7db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/compile-scss.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ class SassCompiler extends MultiFileCachingCompiler {
// Try include paths if not found
for(const includePath of includePaths) {
const basename = decodeURIComponent(url);
const extendedUrl = new URL(path.join(includePath, basename));
const importPath = getRealImportPath(extendedUrl);
const extendedPath = path.join(includePath, basename);
const importPath = getRealImportPath(extendedPath);
if(importPath) {
const convertedImportPath = Plugin.convertToOSPath(importPath);
return pathToFileURL(convertedImportPath);
Expand Down

0 comments on commit 092e7db

Please sign in to comment.