Stop patching error inspection if source maps are disabled (#93364)
If source maps are disabled, we're most likely running in a prod server
where sourcemapping happens lazily when logs are inspected.
Ignore-listing generated frames would forever hide n_m frames.
It also avoids doing a bunch of work that just won't have any effect.
As a follow-up, I'll experiment with showing all frames during
next-build if all original frames are ignore-listed since that's a
one-shot process. For next-dev, we'll continue showing no frames if
everything is ignore-listed since you have an attached a debugger with
the browser to get a high-fidelity UI to see ignore-listed frames.
Co-authored-by:
Claude Code <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment