Commit dffeb7d
Display absolute path on failed dependency resolve. (#271)
* Display absolute path on failed dependency resolve.
When a file path can not be resolved the error message is cleaned
up but the relative path to file is displayed.
In cases where a mistake have been made this path can be very confusing,
like `Cannot resolve dependency './../../../../../../main.js'` for when
a path starts with `/`.
This PR resolves attempted path into an absolute path in hope of
reducing confusion and minimize cognitive overhead of `..` chasing.
* Resolve absolute path relative to asset.
* Log both relative name and absolute search path.1 parent 9376ddd commit dffeb7d
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
| 278 | + | |
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
| |||
0 commit comments