When I use esbuild.build api to build, the node process does not exit, but esbuild cannot exit either.
The reproduce code:
const esbuild = require('esbuild');
(async () => {
await esbuild.build({
entryPoints: ['./src'],
});
console.log(' >>> done');
})();
setTimeout(() => {
// keep running...
}, 10000000);
The terminal output screenshot:

The MacOS monitor screenshot:

I discovered this problem because my team member reported that running esbuild watch mode used 54G of memory on his computer.

When I use
esbuild.buildapi to build, the node process does not exit, but esbuild cannot exit either.The reproduce code:
The terminal output screenshot:

The MacOS monitor screenshot:

I discovered this problem because my team member reported that running esbuild watch mode used 54G of memory on his computer.
