Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Node Modules at War: Why CommonJS and ES Modules Can’t Get Along. Parent comment
Correct. I wouldn't follow the article's advice wrapping ESM with CJS as it leads to larger bundles.
> Won't it cause degradation in behaviour?
For web apps - certainly. The forced sync behavior of CJS wouldn't be very noticeable for local applications however.
There are no comments on this comment yet.
Correct. I wouldn't follow the article's advice wrapping ESM with CJS as it leads to larger bundles.
> Won't it cause degradation in behaviour?
For web apps - certainly. The forced sync behavior of CJS wouldn't be very noticeable for local applications however.