diff --git a/packages/rollup/src/executors/rollup/rollup.impl.ts b/packages/rollup/src/executors/rollup/rollup.impl.ts index 936dd76eb78a81..7a746b33fcc2be 100644 --- a/packages/rollup/src/executors/rollup/rollup.impl.ts +++ b/packages/rollup/src/executors/rollup/rollup.impl.ts @@ -137,9 +137,8 @@ export async function* rollupExecutor( logger.info(`⚡ Done in ${duration}`); 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); + if (e.message) { + logger.info(e.message); } logger.error(e); logger.error(`Bundle failed: ${context.projectName}`);