From fb8b69a51df04198f9f41b2123477ce518a3e4b6 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Mon, 24 Apr 2017 11:51:47 -0500 Subject: [PATCH] fix(webpack): fix issue PR introduced with lazy loaded modules and webpack throwing an invalid error fix issue PR introduced with lazy loaded modules and webpack throwing an invalid error --- src/webpack.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/webpack.ts b/src/webpack.ts index 8905bfca..7a1a8a11 100644 --- a/src/webpack.ts +++ b/src/webpack.ts @@ -142,16 +142,7 @@ export function runWebpackFullBuild(config: WebpackConfig) { if (err) { reject(new BuildError(err)); } else { - const info = stats.toJson(); - - if (stats.hasErrors()) { - reject(new BuildError(info.errors)); - } else if (stats.hasWarnings()) { - Logger.debug(info.warnings) - resolve(stats); - } else { - resolve(stats); - } + resolve(stats); } }; const compiler = webpackApi(config);