Skip to content

Commit cebb1f6

Browse files
authored
lax the windows path conversion if not available (#331)
1 parent f1eec6c commit cebb1f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/convert-path-to-posix.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ export default function convertPathToPosix(filePath: string) {
77
return filePath;
88
}
99

10-
return filePath.split(path.win32.sep).join(path.posix.sep);
10+
return filePath.split(path?.win32?.sep).join(path.posix.sep);
1111
}

0 commit comments

Comments
 (0)