-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Publish CJS + ESM #13181
Comments
Looks like i need to forward this as more and more deps become ESM only 😞 |
What work is required or blocking here? Jest has experimental support for mocking ESM, but I don't see it becoming stable any time soon as jest is blocked by work required upstream in Node and v8. |
we can continue to test as commonjs, but the hard part is to properly compile to esm. the typescript compiler still can't do this on our codebase without changes. we would need to change all local imports to full files with extension and add or we use some kind of bundler to bundle only our code. but we should still provide some API to be used by ourselves other tools. so we can't simply build a single js binary. |
|
What would you like Renovate to be able to do?
Publish both CJS + ESM so that downstream tools can migrate gradually to ESM, prior to us supporting ESM only once #9890 is done
If you have any ideas on how this should be implemented, please tell us here.
@viceice :)
Is this a feature you are interested in implementing yourself?
No
The text was updated successfully, but these errors were encountered: