-
Notifications
You must be signed in to change notification settings - Fork 2
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
Migrating to require(esm)
and esm-only
#129
Comments
Currently the plan is:
Also, the |
Node is starting to ship an unflagged feature to allow you to
require(...)
es modulesThis means a few things:
type: "module"
that export CJS) to esm-onlyResearch methods
High impact packages
The
npm-esm-vs-cjs
repo contains data sets that can help us understand which high impact packages use ESM, and which use CJS (or both).Libraries
We can search this list for libraries and take the following action(s):
The joyee TODO list
@joyeecheung has helpfully already discovered many packages which publish CJS and ESM (i.e. they are dual packages) but are listed as ESM only.
You can view the list here
This could be a good TODO list for migrating to esm-only.
Considerations
require(esm)
was possible. we should create an issue before a PR, to find out if the maintainers are in this situationQuestions
@joyeecheung do you know what the minimum node version is needed for this feature? when we open issues, we will have to ask if its ok to constrain to that version
I suspect many packages will still want older node support, but we will see
The text was updated successfully, but these errors were encountered: