Commit 31f4dea3 by Šimon Podlipský Committed by Ryan McKinley

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

Resolves #20560
parent 6c50feb2
......@@ -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 => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment