Skip stack frame module lookup while Rspack is rebuilding
Under next-rspack, the `Stats.compilation` kept from the previous build is a handle to the compiler's current compilation rather than a snapshot. Source-mapping a stack frame while a rebuild is in flight reads the module graph and module ids of the compilation being built, which panics in the Rspack binding and aborts the dev server. Skip the lookup while the owning compiler's `Watching` is running so the frame is returned unmapped instead. This only applies when `NEXT_RSPACK` is set; webpack keeps the previous compilation as a snapshot and is unaffected. Fixes #98213
Showing
Please
register
or
sign in
to comment