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

Refactoring your entire codebase just to use that one ES module that is incompatible with CJS is a big pill to swallow if your codebase is ... big (or you have many).


True, but if you just do it, even if it's a large undertaking, the benefits of ESM-only code are bigger than being able to use more packages. And someday you will have to move to ESM anyway.


The last sentence is a good way of consoling yourself. I hope no one takes his advice seriously and implements it. Good luck with your own nonsense.




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

Search: