@cloudchen sorry I messed up with my previous P.R.
In some cases it made it worse. I've taken another look at this to make a better fix...
if src is relative and baseDir is absolute then path.relative can give strange results. We need to normalise both the paths to file paths in order to compare them correctly with relative.
@cloudchen sorry I messed up with my previous P.R. In some cases it made it worse. I've taken another look at this to make a better fix...
if src is relative and baseDir is absolute then path.relative can give strange results. We need to normalise both the paths to file paths in order to compare them correctly with relative.