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
Document ES Modules usage #147
Conversation
Can you also add Node.js 14 here: Line 3 in c67d9f4
|
c4d6079
to
f45ccd6
Compare
@sindresorhus added 14 to Travis, also made the esm test conditional on node 14 and greater since otherwise it’ll throw an error. Let me know if there’s a different way you’d prefer to handle that one. |
Ok RTG, @sindresorhus! Thanks for this project and all your projects. |
.. |
30bd878
to
6adbec0
Compare
@@ -0,0 +1 @@ | |||
estest/index.js |
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.
We must ignore this file due to eslint/eslint#13133
Ok I updated this one (which is now ready to review @sindresorhus). According to https://twitter.com/MylesBorins/status/1255950295806488576 it looks like basically the user must use createRequire if they want to keep using this in ES modules (but they are doing so using commonjs). Seems ok for now? I am open to other ideas on how to accomplish this but at least it would unblock people looking to use it in their ES based cli's. |
Thanks :) |
Closes #130.