fix: make @babel/node spawned process bubble msg (#13037)

* Add ipc test

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
This commit is contained in:
KevinMolotov
2021-03-22 16:26:33 +01:00
committed by Nicolò Ribaudo
parent afef4f85ff
commit b360d8d614
3 changed files with 29 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ getV8Flags(async function (err, v8Flags) {
}
});
});
proc.on("message", message => process.send && process.send(message));
process.on("SIGINT", () => proc.kill("SIGINT"));
}
});