We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52bb94c commit 804cc3bCopy full SHA for 804cc3b
.changeset/cuddly-cougars-deny.md
@@ -0,0 +1,5 @@
1
+---
2
+'@module-federation/dts-plugin': patch
3
4
+
5
+fix: check pid is undefined before kill it
packages/dts-plugin/src/core/lib/DtsWorker.ts
@@ -45,7 +45,10 @@ export class DtsWorker {
45
const ensureChildProcessExit = () => {
46
try {
47
const pid = this.rpcWorker.process?.pid;
48
- process.kill(pid, 0);
+ const rootPid = process.pid;
49
+ if (pid && rootPid !== pid) {
50
+ process.kill(pid, 0);
51
+ }
52
} catch (error) {
53
if (isDebugMode()) {
54
console.error(error);
0 commit comments