Skip to content

Commit 014fd4d

Browse files
committed
Switch to unix path separators before normalizing path for Windows compatibility
1 parent b17fa41 commit 014fd4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-error-overlay/src/utils/unmapper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async function unmap(
5656
}
5757
let { fileName } = frame;
5858
if (fileName) {
59-
fileName = path.normalize(fileName);
59+
fileName = path.normalize(fileName.replace(/[\\]+/g, '/'));
6060
}
6161
if (fileName == null) {
6262
return frame;

0 commit comments

Comments
 (0)