We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989d211 commit 0472f00Copy full SHA for 0472f00
.nx/version-plans/version-plan-1768465317882.md
@@ -0,0 +1,5 @@
1
+---
2
+__default__: prerelease
3
4
+
5
+Bundling errors are now displayed in the CLI output, providing immediate feedback when build issues occur.
packages/runtime/src/bundler/errors.ts
@@ -20,7 +20,8 @@ export class BundlingFailedError extends Error {
20
public readonly modulePath: string,
21
public readonly reason: string
22
) {
23
- super(`Bundling of ${modulePath} failed`);
+ const reasonMessage = JSON.parse(reason).message ?? reason;
24
+ super(`Bundling of ${modulePath} failed with error:\n\n${reasonMessage}\n`);
25
this.name = 'BundlingFailedError';
26
}
27
0 commit comments