Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

esbuild handles CJS dependencies just fine and had been what Vite was using in development for a long time anyway. It doesn't split CJS dependencies or tree-shake them as automatically/smartly as it could, but it still supports splitting them and there are manual workarounds.

I think the bigger problem, from my experience here, is still the question of not moving to ESM as the default production output. That seems out of date.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: