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);