rspack icon indicating copy to clipboard operation
rspack copied to clipboard

[Feature]: Display diagnostic title in error logs

Open chenjiahan opened this issue 7 months ago • 0 comments

What problem does this feature solve?

Rspack can display diagnostic title in error logs to help users quickly locate the source of the problem.

  • Example:

https://github.com/web-infra-dev/rspack/blob/7045e4827ccb255dc39afe0f1cd93189668300ad/crates/rspack_plugin_sri/src/lib.rs#L114-L118

  • Current:

Image

What does the proposed API of configuration look like?

  • Expected:
ERROR in × SubresourceIntegrity: rspack option output.crossOriginLoading not set, code splitting will not work!

Reproduction

See https://github.com/chenjiahan/rspack-repro-diagnostic-title

chenjiahan avatar Mar 18 '25 10:03 chenjiahan