fix(webpack): close compiler after run (#10080)

This commit is contained in:
Samuel Schultze
2022-11-08 18:08:49 -03:00
committed by GitHub
parent 75503ef110
commit 59ca35b44b

View File

@ -150,7 +150,14 @@ program
webpackCompilationCallback
);
} else {
compiler.run(webpackCompilationCallback);
compiler.run((err, status) => {
compiler.close((err2) =>
webpackCompilationCallback(
(err || err2) as webpack.WebpackError,
status
)
);
});
}
});