MCPcopy
hub / github.com/rollup/rollup / getLogHandler

Function getLogHandler

src/utils/transform.ts:100–107  ·  view source on GitHub ↗
(handler: LoggingFunctionWithPosition)

Source from the content-addressed store, hash-verified

98
99 const getLogHandler =
100 (handler: LoggingFunctionWithPosition): LoggingFunctionWithPosition =>
101 (log, pos) => {
102 log = normalizeLog(log);
103 if (pos) augmentCodeLocation(log, pos, currentSource, id);
104 log.id = id;
105 log.hook = 'transform';
106 handler(log);
107 };
108
109 let code: string;
110

Callers 1

transformFunction · 0.70

Calls 3

normalizeLogFunction · 0.90
augmentCodeLocationFunction · 0.90
handlerFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…