You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cool, good feedback. I've changed it to "You very likely want "CommonJS" in node projects" which is generally the dominant way people use TypeScript. 👍🏻
Can I suggest thinking through this sentence again one year later? 😅 @orta (EDIT: linked a new issue, perhaps better to discuss there)
Now that all active Node versions support the EcmaScript module system it makes sense to encourage to use the standard; which ended up being ESM.
Some information on the state of EcmaScript module (ESM) support in the Node world: Node 10 didn't support ESM but reached end of life earlier this year, Node 12 supports ESM behind a flag, and from Node 14 ESM is considered a stable feature according to the docs.
The docs say that
You very likely want "CommonJS"
but without any explanation. This was mentioned in #594 also.It would be very helpful to know why CommonJS is assumed to be the preferred module format over the other options.
The text was updated successfully, but these errors were encountered: