Skip to content

Commit

Permalink
fix: webpack paths
Browse files Browse the repository at this point in the history
  • Loading branch information
borela authored and davidnpma committed May 31, 2017
1 parent 3c126ec commit ac93880
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ export class RedBoxError extends Component {
mapError(error) {
mapStackTrace(error.stack, mappedStack => {
const mappedError = error;
mappedError.stack = mappedStack.join('\n');
this.setState({ error: mappedError });
mappedError.stack = mappedStack.join('\n')
.replace(/webpack:\/{3}/g, 'webpack:///.')
this.setState({ error: mappedError })
});
}

Expand Down

0 comments on commit ac93880

Please sign in to comment.