(originalError: Error)
| 575 | } |
| 576 | |
| 577 | export function logCannotLoadConfigAsEsm(originalError: Error): RollupLog { |
| 578 | return tweakStackMessage( |
| 579 | { |
| 580 | cause: originalError, |
| 581 | code: INVALID_CONFIG_MODULE_FORMAT, |
| 582 | message: `Node tried to load your configuration as an ES module even though it is likely CommonJS. To resolve this, change the extension of your configuration to ".cjs" or pass the "--bundleConfigAsCjs" flag.\n\nOriginal error: ${originalError.message}`, |
| 583 | stack: originalError.stack, |
| 584 | url: getRollupUrl(URL_BUNDLE_CONFIG_AS_CJS) |
| 585 | }, |
| 586 | originalError.message |
| 587 | ); |
| 588 | } |
| 589 | |
| 590 | export function logInvalidExportOptionValue(optionValue: string): RollupLog { |
| 591 | return { |
no test coverage detected
searching dependent graphs…