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
{{ message }}
Repository navigation
Create an explainer / hub page for unflagged require(ESM) support #35
The new unflagged require(ESM) support in Node.js is very exciting. It's starting to let a lot of tools move to ESM without feat of leaving dependents behind. 🚀
But, there isn't one single high-level, official resource I can find that users can be pointed to to understand the unflagged support.
https://joyeecheung.github.io/blog/2024/03/18/require-esm-in-node-js/ is not official. It feels weird pointing folks to a third party platform. It also has a lot of details on historical context and decision-making that users who just want to learn the high level of the feature wouldn't want to have to read through. (it is a great blog post on its own though!)
Thanks for opening the issue! I think this is what part of the package-examples aim to solve (e.g. in the Making ESM require-able chapter, the goal is to have some actual working examples there living side by side with the document), though this is still a WIP and I have not gotten to filling in the skeletons already laid out in there. Feel free to take a look at https://github.com/nodejs/package-examples/blob/main/CONTRIBUTING.md if anyone is interested ;)
Reacted by Claudio Wunder, Augustin Mauroy and Josh Ghoulberg 👻
FYI I opened nodejs/package-examples#16 to add a CJS->ESM migration guide in the package example guide, which, together with the chapter 3-4 landed there before, should include all the points suggested in the OP.
Reacted by Josh Ghoulberg 👻, Augustin Mauroy and Claudio Wunder
Reacted by Josh Ghoulberg 👻, Augustin Mauroy and Claudio Wunder
Activity
joyeecheung commentedon Feb 1, 2025
Thanks for opening the issue! I think this is what part of the package-examples aim to solve (e.g. in the Making ESM require-able chapter, the goal is to have some actual working examples there living side by side with the document), though this is still a WIP and I have not gotten to filling in the skeletons already laid out in there. Feel free to take a look at https://github.com/nodejs/package-examples/blob/main/CONTRIBUTING.md if anyone is interested ;)
udaydevs commentedon Apr 30, 2025
@JoshuaKGoldberg please assign me this issue
avivkeller commentedon Apr 30, 2025
Hi! You are more than welcome to work on resolving this issue, we'd actually really appreciate it!
However, we don't typically assign issues to users.
joyeecheung commentedon Jan 6, 2026
FYI I opened nodejs/package-examples#16 to add a CJS->ESM migration guide in the package example guide, which, together with the chapter 3-4 landed there before, should include all the points suggested in the OP.