-
Notifications
You must be signed in to change notification settings - Fork 177
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
Exporting as ES Module Syntax (ESM) #229
Comments
@JoviDeCroock If you have not seen it, I suppose it may be of your interest 🙂 |
Any news on this? Thanks in advance! |
I have done a PR, there I got asked to convert this repository to TypeScript first but since no maintainer has been active on the repository. |
Ouch! 😢 Thanks anyway for your work! |
Well, on the bright side it is not that you would be able to tree shake anything anyway so using the CJS is functionally equivalent. |
I'm really thinking about rewrite this to typescript + emitting |
@langpavel already doing this but waiting for merge, you can always help out by making PR's to the /typescript branch. |
@JoviDeCroock I must break for some days, but here is what I do last week:
https://gist.github.com/langpavel/ffd6ecb5ba655b7b4bff3ebdca0942f0 |
@langpavel Do it on the official repo |
Is there any hope for this? |
Any update? 😥 |
EDIT: Seems I was a bit naive on the state of ESM in this library. See my recent comment. |
In the meanwhile if you really need ESM, we have had stable ESM support on urql for a few years! |
Ok seems I was a bit naive in the state of things, so my previous comment can be ignored. #325 did the necessary work to ensure this library has proper ESM compatibility. You can see the Given this is a 5 year old issue, I feel leaving this issue open is misleading on the state of ESM in this library, so I'm going to go ahead and close this as completed via #325. For those that are having ESM issues, I encourage you to open a new issue with a specific problem so that we can look at it further. Thanks! |
Please, export
"module"
entry point in thepackage.json
as ES Module Syntax (ESM).More info about it here: https://www.pikapkg.com/about/
How to reproduce the issue:
Just download the package or see it at unpkg:
https://unpkg.com/graphql-tag@2.10.0/src/index.js?module.
The text was updated successfully, but these errors were encountered: