diff --git a/src/index.ts b/src/index.ts index 8ea8e94..a78ab43 100644 --- a/src/index.ts +++ b/src/index.ts @@ -232,9 +232,9 @@ function resolveLaravelPlugin(pluginConfig: Required): LaravelPlug } process.on('exit', clean) - process.on('SIGINT', process.exit) - process.on('SIGTERM', process.exit) - process.on('SIGHUP', process.exit) + process.on('SIGINT', () => process.exit()) + process.on('SIGTERM', () => process.exit()) + process.on('SIGHUP', () => process.exit()) exitHandlersBound = true }