-
Notifications
You must be signed in to change notification settings - Fork 572
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
Add ESM wrapper for named imports #369
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a unit test for this? Thanks.
pardon for forgetting to do it, going to add it soon and write back here |
@mcollina I added the tests, they passed on all environments, except macOS Node 14.X And the error seems to drop in another place that I haven't even touched: https://github.com/nodejs/undici/pull/369/checks?check_run_id=1044833326#step:5:6274
not sure what is causing it, but is not my ESM wrapper because it is not used in that test suite that fails What should I do in this case? 🤔 |
It's a flaky test not related. I'm investigating it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
yaaay it got merged :DD |
Hello, I'd like to add ESM wrapper to be able to use named imports in Node ESM, like this:
I simply wrapped the index.js file and put a
"module"
field to package.jsonDo I need to do any other work, or it is ok as it is now?
thanks in advance for PR feedback