From 6c24a15da9e9359461c1d8821e2aff04df3df0ec Mon Sep 17 00:00:00 2001 From: Hana Date: Thu, 19 Sep 2024 17:29:59 +0800 Subject: [PATCH] test: add --- crates/node_binding/src/diagnostic.rs | 6 +++++ crates/rspack_util/src/location.rs | 6 ++--- .../loader-emit-diagnostic/index.js | 1 + .../loader-emit-diagnostic/stats.err | 20 +++++++++++++++ .../with-multi-byte-char.js | 25 +++++++++++++++++++ 5 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 packages/rspack-test-tools/tests/diagnosticsCases/module-build-failed/loader-emit-diagnostic/with-multi-byte-char.js diff --git a/crates/node_binding/src/diagnostic.rs b/crates/node_binding/src/diagnostic.rs index a5be31b6834..2a0ff218c53 100644 --- a/crates/node_binding/src/diagnostic.rs +++ b/crates/node_binding/src/diagnostic.rs @@ -78,6 +78,12 @@ pub fn format_diagnostic(diagnostic: JsDiagnostic) -> Result