When esbuild is started in the serve mode it consumes around 40-50MB on my system.
But when I open a page in a browser and the page starts making many small range requests suddenly memory consumption jumps to around 6GB which is scarry.
The requested file is about 800Mb in size, and we are making 10 to 20 request on startup, each request has a Range header with a range usually less than 100kB in size.
esbuild version was 0.12.21
I was running it on Windows 10
Memory consumption was measured using Windows Task Manager