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 7a5319f commit d6c3637Copy full SHA for d6c3637
src/esbuild-plugins/start-app/start-app-plugin.ts
@@ -48,9 +48,17 @@ export const startAppPlugin = (params: {
48
.addTransformer(formatChildOutputLine)
49
.start();
50
51
+ const onProcessKilled = async () => {
52
+ // @ts-expect-error
53
+ process.kill(-child.pid);
54
+ };
55
+
56
+ process.on("SIGINT", onProcessKilled);
57
58
const onExit = async () => {
59
await program.esbuildCtx.cancel();
60
await program.esbuildCtx.dispose();
61
+ process.off("exit", onProcessKilled);
62
};
63
64
child.on("exit", onExit);
0 commit comments