Skip to content

Commit

Permalink
ensure double slashes (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Jun 8, 2021
1 parent 08a3c8a commit ef9c739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby-cli/src/reporter/prepare-stack-trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ function getPosition({
line: frame.getLineNumber(),
source: frame
.getFileName()
.substr(frame.getFileName().indexOf(`webpack:`)),
.substr(frame.getFileName().indexOf(`webpack:`))
.replace(/webpack:\/+/g, `webpack://`),
name: null,
}
}
Expand Down

0 comments on commit ef9c739

Please sign in to comment.