evanw / evanw/node-source-map-support

Leaking event hooks which prevents process from exiting

Open
#309 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
223
PR merge metrics
No merged PRs in 30d

Description

```ts
import why from 'why-is-node-running'
import sourceMapSupport from 'source-map-support'
sourceMapSupport.install()
why()
```

which produces this error:
```
# SIGNALWRAP
node:internal/async_hooks:201
node:internal/process/signal:26
/var/app/recovery-unified-api/node_modules/source-map-support/source-map-support.js:516 - return origEmit.apply(this, arguments);
file:///var/app/recovery-unified-api/dest/index.js:19
node:internal/process/task_queues:96
```

it would be nice if there was simply a function to uninstall:
```ts
sourceMapSupport.uninstall()
```

Or just something that would stop the signal.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.