diff --git a/packages/rollup/src/executors/rollup/rollup.impl.ts b/packages/rollup/src/executors/rollup/rollup.impl.ts index 936dd76eb78a8..ec60ceeea4fe4 100644 --- a/packages/rollup/src/executors/rollup/rollup.impl.ts +++ b/packages/rollup/src/executors/rollup/rollup.impl.ts @@ -138,8 +138,9 @@ export async function* rollupExecutor( return { success: true, outfile }; } catch (e) { if (e.formatted) { - // Formattted message is provided by Rollup and contains codeframes for where the error occurred. logger.info(e.formatted); + } else if (e.message) { + logger.info(e.message); } logger.error(e); logger.error(`Bundle failed: ${context.projectName}`);