Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Switch to unix path separators before normalizing path for Windows co…
…mpatibility
  • Loading branch information
Timer committed Sep 6, 2017
commit 014fd4d0380e738355d830e9132740ab419e9f79
2 changes: 1 addition & 1 deletion packages/react-error-overlay/src/utils/unmapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function unmap(
}
let { fileName } = frame;
if (fileName) {
fileName = path.normalize(fileName);
fileName = path.normalize(fileName.replace(/[\\]+/g, '/'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to add a comment for why it helps.

}
if (fileName == null) {
return frame;
Expand Down