Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .nx/version-plans/version-plan-1768465317882.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
__default__: prerelease
---

Bundling errors are now displayed in the CLI output, providing immediate feedback when build issues occur.
3 changes: 2 additions & 1 deletion packages/runtime/src/bundler/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export class BundlingFailedError extends Error {
public readonly modulePath: string,
public readonly reason: string
) {
super(`Bundling of ${modulePath} failed`);
const reasonMessage = JSON.parse(reason).message ?? reason;
super(`Bundling of ${modulePath} failed with error:\n\n${reasonMessage}\n`);
this.name = 'BundlingFailedError';
}
}