From 73c1f924d6f6b996b6ab12f9a1c67b19e9761df1 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Wed, 28 Jul 2021 08:34:24 -0700 Subject: [PATCH] Align batch warning for UNUSED_EXTERNAL_IMPORT to individual warning --- cli/run/batchWarnings.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cli/run/batchWarnings.ts b/cli/run/batchWarnings.ts index 4b989d87ef8..e129a64f10a 100644 --- a/cli/run/batchWarnings.ts +++ b/cli/run/batchWarnings.ts @@ -237,7 +237,13 @@ const deferredHandlers: { UNUSED_EXTERNAL_IMPORT(warnings) { title('Unused external imports'); for (const warning of warnings) { - stderr(`${warning.names} imported from external module '${warning.source}' but never used`); + stderr( + `${warning.names} imported from external module '${warning.source}' but never used${ + warning.sources + ? ' in ' + printQuotedStringList(warning.sources.map(id => relativeId(id))) + : '' + }` + ); } } };