We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 989d211 commit a72fe4aCopy full SHA for a72fe4a
1 file changed
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