show which file is causing an error/warning

This commit is contained in:
Rich Harris
2018-08-23 11:09:02 -04:00
parent b1a9be2dc3
commit 32f4a50f25
2 changed files with 11 additions and 9 deletions

View File

@@ -26,8 +26,8 @@ export type InvalidEvent = {
export type BuildEvent = {
type: string;
errors: Array<{ message: string, duplicate: boolean }>;
warnings: Array<{ message: string, duplicate: boolean }>;
errors: Array<{ file: string, message: string, duplicate: boolean }>;
warnings: Array<{ file: string, message: string, duplicate: boolean }>;
duration: number;
webpack_stats: any;
}