Skip to content

Commit 8d74c89

Browse files
filipesilvahansl
authored andcommitted
fix(@ngtools/webpack): show error stack on plugin
Plugin errors do not show the stack, just the message. This makes it harder to debug errors as the single line message blends into loader errors.
1 parent 668e6ca commit 8d74c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@ngtools/webpack/src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ export class AotPlugin implements Tapable {
579579

580580
cb();
581581
}, (err: any) => {
582-
compilation.errors.push(err);
582+
compilation.errors.push(err.stack);
583583
cb();
584584
});
585585
}

0 commit comments

Comments
 (0)