core
core copied to clipboard
Hot reload fails to tear down app
🐜 Bug description
When using bun run --hot src/main.ts - making changes to the file will boot a new server but it doesn't seem to tear down the old properly.
In combination with a webserver, you can get to about a dozen changes before something internally explodes and nothing will boot. The work around currently is to use nodemon instead, but this ticket is for tracking down why this happens / if there is a way to catch it (maybe a different process event?)