rspack
rspack copied to clipboard
[Feature]: Display diagnostic title in error logs
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:
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