-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CJS to ESM conversion support for GitHub #18506
Comments
Do you have examples of some popular projects that would benefit from this? There are a couple of reasons we didn't do this so far, e.g.:
|
No, because popular projects always publish to NPM. The point of this is precisely to be able to use unpopular projects.
When a module is run locally, NPM is also the default registry anyway.
True. But this feature would still be useful to minorities. Here's an additional use case of this feature, although minor as well : importing a development version or a forked version of a package (whether popular or not) without needing to publish it. Thanks |
Is your feature request related to a problem? Please describe.
Just like CJS packages are distributed via NPM, some are distributed via GitHub.
Describe the solution you would like.
Just like jsDelivr supports converting NPM packages from CJS to ESM, it could support converting GitHub packages from CJS to ESM, i.e. :
https://cdn.jsdelivr.net/gh/user/repo@version/file/+esm
Describe alternatives you have considered.
None
Requisites
Additional content
None
Thanks
The text was updated successfully, but these errors were encountered: