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 cf885d8 commit e09cf34Copy full SHA for e09cf34
src/index.ts
@@ -51,7 +51,7 @@ const defaultPathHandlers : PathHandlers = {
51
// note :
52
// normalize('./test') -> 'test'
53
// normalize('/test') -> '/test'
54
- return relPath[0] !== '.' ? relPath : Path.normalize(Path.join(Path.dirname(refPath), relPath));
+ return (relPath[0] !== '.' && relPath[0] !== '/') ? relPath : Path.normalize(Path.join(Path.dirname(refPath), relPath));
55
}
56
57
0 commit comments