Commit 75bbab5
committed
feat(cli): keep user-land frames in config loading errors
Refine ConfigurationLoadingError formatting to cut the stack at the first
internal Node.js / dependency frame instead of the first frame, so that an
error thrown at runtime inside a config still shows the offending config
line (e.g. `at Object.<anonymous> (webpack.config.js:3:9)`), while internal
loader frames remain trimmed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019fDbvnssGbssgK6qCaRBLj1 parent fbb4e6a commit 75bbab5
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
430 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
436 | 437 | | |
437 | | - | |
438 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
439 | 444 | | |
440 | 445 | | |
441 | 446 | | |
| |||
0 commit comments