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 8dfb007 commit 4bae90dCopy full SHA for 4bae90d
packages/react-error-overlay/src/utils/unmapper.js
@@ -47,14 +47,15 @@ async function unmap(
47
const fN: string = fileName;
48
const source = map
49
.getSources()
50
- .map(s => path.normalize(s.replace(/[\\]+/g, '/')))
+ .map(s => s.replace(/[\\]+/g, '/'))
51
.filter(p => {
52
+ p = path.normalize(p);
53
const i = p.lastIndexOf(fN);
54
return i !== -1 && i === p.length - fN.length;
55
})
56
.map(p => ({
57
token: p,
- seps: count(path.sep, p),
58
+ seps: count(path.sep, path.normalize(p)),
59
penalties: count('node_modules', p) + count('~', p),
60
}))
61
.sort((a, b) => {
0 commit comments