4 ms·
I have tried to use esbuild, and over the past 3 months I had at least a dozen times when it has compiled incorrect code that doesn't work or doesn't do what it
by sunflowerdeath 5y ago
I have tried to use esbuild, and over the past 3 months I had at least a dozen times when it has compiled incorrect code that doesn't work or doesn't do what it's supposed to do. So despite the performance benefits, I was forced to go back to webpack, babel, and terser.
- ballenf 5y agoAny specific scenarios where it fails? We're using it across a wide codebase and several teams and I haven't seen or heard that issue.
- Secretmapper 5y agoFor me personally, it's mainly CJS imports which I can't drop. Of course the correct way would be to force the dependencies to support es. But vite has now become default for me as well for new projects.
- donjoe 5y agoDid u try using typescript with esbuild? React + esbuild + typescript is a perfect combination for me. I had the chance to kick off a new project a few months ago and started with this stack. It needed roughly 50 lines of code to get a decent server side rendering development experience set up. Compile time is still below 200ms. The only issues I had in the beginning was esbuild's compilation of typescript enums: the import order was off from time to time. Besides that, no issues. I am also super glad I do not need to configure webpack any longer.
- nojvek 5y agoDo you have any repros? So far I’ve found esbuild give the correct output.