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

Commit fb8b69a

Browse files
committed
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
1 parent 4cfa9bb commit fb8b69a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/webpack.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,7 @@ export function runWebpackFullBuild(config: WebpackConfig) {
142142
if (err) {
143143
reject(new BuildError(err));
144144
} else {
145-
const info = stats.toJson();
146-
147-
if (stats.hasErrors()) {
148-
reject(new BuildError(info.errors));
149-
} else if (stats.hasWarnings()) {
150-
Logger.debug(info.warnings)
151-
resolve(stats);
152-
} else {
153-
resolve(stats);
154-
}
145+
resolve(stats);
155146
}
156147
};
157148
const compiler = webpackApi(config);

0 commit comments

Comments
 (0)