MCPcopy
hub / github.com/rollup/rollup / UNRESOLVED_IMPORT

Function UNRESOLVED_IMPORT

cli/run/batchWarnings.ts:232–246  ·  view source on GitHub ↗
(warnings)

Source from the content-addressed store, hash-verified

230 },
231
232 UNRESOLVED_IMPORT(warnings) {
233 title('Unresolved dependencies');
234 info(getRollupUrl(URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY));
235
236 const dependencies = new Map<string, string[]>();
237 for (const warning of warnings) {
238 getOrCreate(dependencies, relativeId(warning.exporter!), getNewArray).push(
239 relativeId(warning.id!)
240 );
241 }
242
243 for (const [dependency, importers] of dependencies) {
244 stderr(`${bold(dependency)} (imported by ${printQuotedStringList(importers)})`);
245 }
246 },
247
248 UNUSED_EXTERNAL_IMPORT(warnings) {
249 title('Unused external imports');

Callers

nothing calls this directly

Calls 8

getRollupUrlFunction · 0.90
getOrCreateFunction · 0.90
stderrFunction · 0.90
printQuotedStringListFunction · 0.90
titleFunction · 0.85
infoFunction · 0.85
relativeIdFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…