AriaMinaei / AriaMinaei/pretty-error

Extracts wrong name when used with webpack

Open
#30 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
1.5k
Forks
51
PR merge metrics
No merged PRs in 30d

Description

Webpack uses query strings for it loaders.
When executing webpack code with source maps and _pretty-error_ I get invalid file names:

```
- loader.js:10 eval
/a/path/template.jade?/a/path/loader.js:10:57
```

I would expect `template.jade` however pretty error displays `loader.js`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the webpack and source-map reproduction described in the issue, focusing on the displayed path containing a query string. Trace how pretty-error extracts the filename from that path. Done when the output reports template.jade rather than loader.js.

Written by the indexing model from the issue text.

Assessment

Tech stack
webpack
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.