Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
fix(webpack): fix issue PR introduced with lazy loaded modules and we…
Browse files Browse the repository at this point in the history
…bpack throwing an invalid error

fix issue PR introduced with lazy loaded modules and webpack throwing an invalid error
  • Loading branch information
danbucholtz committed Apr 27, 2017
1 parent 4cfa9bb commit fb8b69a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fb8b69a

Please sign in to comment.