mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix(webpack): close compiler after run (#10080)
This commit is contained in:
@ -150,7 +150,14 @@ program
|
||||
webpackCompilationCallback
|
||||
);
|
||||
} else {
|
||||
compiler.run(webpackCompilationCallback);
|
||||
compiler.run((err, status) => {
|
||||
compiler.close((err2) =>
|
||||
webpackCompilationCallback(
|
||||
(err || err2) as webpack.WebpackError,
|
||||
status
|
||||
)
|
||||
);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user