We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0bbb56 commit acca85fCopy full SHA for acca85f
src/rules/alias.ts
@@ -49,7 +49,7 @@ function findAlias(
49
// Remove basedir and slash in start
50
const slicedImportPath = importPath
51
.slice(baseDir.length + 1)
52
- .slice(path.dirname(matchedPath.replace(/^\.\//, '')).length + 1);
+ .slice(path.dirname(path.normalize(matchedPath)).length + 1);
53
// Remove asterisk from end of alias
54
const replacedPathSegments = path
55
.join(path.dirname(alias), slicedImportPath)
0 commit comments