Skip to content

Commit

Permalink
Align batch warning for UNUSED_EXTERNAL_IMPORT to individual warning
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jul 28, 2021
1 parent e88c5c8 commit 73c1f92
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cli/run/batchWarnings.ts
Expand Up @@ -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)))
: ''
}`
);
}
}
};
Expand Down

0 comments on commit 73c1f92

Please sign in to comment.