You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors thrown during ESM module evaluation often do not show how the failing
module was reached via imports, making it hard to understand why it was loaded.
This change appends an "Import trace" section to the formatted error stack for
evaluation-time ESM errors. The trace is derived from the loaderβs import graph
and shows the chain of modules leading to the failure.
The implementation preserves existing stack formatting and source map handling,
and is limited to module evaluation only.
A new test verifies that the expected import chain is included.
Refs: #46992
0 commit comments