Hacker News new | past | comments | ask | show | jobs | submit login

> Another issue we ran into was certain dependencies that only have .cjs versions that work fine when building, but during dev would fail to import via ESM correctly

I'd say that's more node's fault for half assing their ESM-CJS interop. Like, their solution to importing CJS was to go with a dumb static analysis thing. And their solution to requiring ESM was, you can't do it.

Meanwhile bundlers had ESM and CJS working side by side almost flawlessly.






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

Search: