Skip to content

Commit

Permalink
fix(bundling): rollup does not log build errors
Browse files Browse the repository at this point in the history
closed 22896
  • Loading branch information
plumcoding authored May 2, 2024
1 parent 5ded713 commit debaf72
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/rollup/src/executors/rollup/rollup.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit debaf72

Please sign in to comment.