Skip to content

Commit 29988d5

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 5459d37 commit 29988d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)