Toolkit: Do not continue after compile error (#20590)

Resolves #20560
This commit is contained in:
Šimon Podlipský
2019-11-25 06:43:32 +01:00
committed by Ryan McKinley
parent 6c50feb252
commit 31f4dea3d0

View File

@@ -56,6 +56,8 @@ export const bundlePlugin = async ({ watch, production }: PluginBundleOptions) =
compiler.run((err: Error, stats: webpack.Stats) => {
if (err) {
reject(err.message);
return;
}
if (stats.hasErrors()) {
stats.compilation.errors.forEach(e => {