Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Example: Native require(ESM) #106

Open
3 tasks done
JoshuaKGoldberg opened this issue Jan 29, 2025 · 0 comments · May be fixed by #107
Open
3 tasks done

🚀 Example: Native require(ESM) #106

JoshuaKGoldberg opened this issue Jan 29, 2025 · 0 comments · May be fixed by #107
Assignees
Labels
status: accepting prs Please, send a pull request to resolve this! 🙏 type: feature New feature or request

Comments

@JoshuaKGoldberg
Copy link
Member

JoshuaKGoldberg commented Jan 29, 2025

Example Request Checklist

Overview

Now that Node.js natively supports CommonJS files loading ESM ones in 22.12.01 and 23.0.02, there's no more need to use transpilers/etc. to require ESM modules in CommonJS code! 🎉

Suggested Solution

I'll add a straightforward example showing this.

Additional Info

Footnotes

  1. https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V22.md#requireesm-is-now-enabled-by-default

  2. https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V23.md#2024-10-16-version-2300-current-rafaelgss

@JoshuaKGoldberg JoshuaKGoldberg added status: accepting prs Please, send a pull request to resolve this! 🙏 type: feature New feature or request labels Jan 29, 2025
@JoshuaKGoldberg JoshuaKGoldberg self-assigned this Jan 29, 2025
@JoshuaKGoldberg JoshuaKGoldberg changed the title 🚀 Example: Native ESM 🚀 Example: Native require(ESM) Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepting prs Please, send a pull request to resolve this! 🙏 type: feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant