Implementing native Node.js hot modules (technical write up)
immaculata.dev
immaculata.dev
This kind of leak was deemed acceptable in a browser tab (which we tend to close or reload often) but unacceptable for a long-running server process.
Pseudo-modules based on node:vm, on the other hand, will be collected normally when they become unreachable.