MCPcopy Index your code
hub / github.com/rollup/rollup / tweakStackMessage

Function tweakStackMessage

src/utils/logs.ts:543–549  ·  view source on GitHub ↗
(error: RollupLog, oldMessage: string)

Source from the content-addressed store, hash-verified

541}
542
543function tweakStackMessage(error: RollupLog, oldMessage: string): RollupLog {
544 if (!error.stack) {
545 return error;
546 }
547 error.stack = error.stack.replace(oldMessage, error.message);
548 return error;
549}
550
551export function logCannotBundleConfigAsEsm(originalError: Error): RollupLog {
552 return tweakStackMessage(

Callers 5

augmentLogMessageFunction · 0.85
logCannotLoadConfigAsCjsFunction · 0.85
logCannotLoadConfigAsEsmFunction · 0.85
logModuleParseErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…