MCPcopy
hub / github.com/rollup/rollup / log

Function log

cli/run/batchWarnings.ts:67–87  ·  view source on GitHub ↗
(level, log)

Source from the content-addressed store, hash-verified

65 },
66
67 log(level, log) {
68 if (!logFilter(log)) return;
69 switch (level) {
70 case LOGLEVEL_WARN: {
71 return add(log);
72 }
73 case LOGLEVEL_DEBUG: {
74 if (!silent) {
75 stderr(bold(pc.blue(log.message)));
76 defaultBody(log);
77 }
78 return;
79 }
80 default: {
81 if (!silent) {
82 stderr(bold(pc.cyan(log.message)));
83 defaultBody(log);
84 }
85 }
86 }
87 },
88
89 get warningOccurred() {
90 return warningOccurred;

Callers 14

getGlobalNameFunction · 0.50
reserveFileNameInBundleFunction · 0.50
getOptimizedChunksFunction · 0.50
getExportModeFunction · 0.50
getLinkMapFunction · 0.50
normalizeLogFunction · 0.50
warnUnknownOptionsFunction · 0.50
iifeFunction · 0.50
setupNamespaceFunction · 0.50
assignToDeepVariableFunction · 0.50

Calls 3

stderrFunction · 0.90
defaultBodyFunction · 0.85
addFunction · 0.70

Tested by

no test coverage detected