Skip to content

Commit

Permalink
fixed bug in import subpath module
Browse files Browse the repository at this point in the history
  • Loading branch information
HridoyHazard committed Oct 3, 2023
1 parent 13864a6 commit 407f2ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/less/src/less-node/file-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ FileManager.prototype = Object.assign(new AbstractFileManager(), {
fullFilename = fileParts.rawPath + prefixes[j] + fileParts.filename;

if (paths[i]) {
fullFilename = path.join(paths[i], fullFilename);
if (paths[i].startsWith('#')) {
// Handling paths starting with '#'
fullFilename = paths[i].substr(1) + fullFilename;
}else{
fullFilename = path.join(paths[i], fullFilename);
}
}

if (!explicit && paths[i] === '.') {
Expand Down

0 comments on commit 407f2ca

Please sign in to comment.