We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f03f65 commit c56caaaCopy full SHA for c56caaa
src/utils/trie.ts
@@ -12,7 +12,7 @@
12
*/
13
14
/** */
15
-import { isAbsolute, normalize, relative } from 'path';
+import { isAbsolute, normalize, relative, resolve } from 'path';
16
import { findBasePathOfAlias, relativeOutPathToConfigDir } from '../helpers';
17
import { Alias, IProjectConfig, PathLike } from '../interfaces';
18
@@ -83,7 +83,10 @@ export class TrieNode<T> {
83
.replace(/\*$/, '')
84
.replace(/\.([mc])?ts(x)?$/, '.$1js$2');
85
if (isAbsolute(path)) {
86
- path = relative(config.configDir, path);
+ path = relative(
87
+ resolve(config.configDir, config.baseUrl),
88
+ path
89
+ );
90
}
91
92
if (
0 commit comments