ts-node icon indicating copy to clipboard operation
ts-node copied to clipboard

Robust `unregister()`, opposite of `register()`

Open cspotcode opened this issue 3 years ago • 0 comments

Remove all ts-node hooks from the env, not just disable it.

This is not high-priority, but I'm creating this ticket as a place to note gotchas:

  • Must call both sourceMapSupport.uninstall() and sourceMapSupport.resetRetrieveHandlers()
    • the latter avoids a memory leak. The retrieve handlers store a reference to the TS and TSNode services; they must be disposed of.

cspotcode avatar Apr 19 '22 04:04 cspotcode