fix(angular): kill ports correctly (#10142)

This commit is contained in:
Colum Ferry 2022-05-04 20:08:34 +01:00 committed by GitHub
parent aa360645ab
commit 1d3becac90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,7 @@ export function moduleFederationDevServer(
}
// Cleanup ports on kill
process.on('kill', () => {
process.on('exit', () => {
remotePorts.forEach((port) => killPort(port));
});