-
Notifications
You must be signed in to change notification settings - Fork 19
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 "type": "module" #254
Add "type": "module" #254
Conversation
@benmccann: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
I've signed the CLA. Thanks |
@benjamn thanks for approving the workflow. It looks like the tests were failing since adding |
The public package should still work in older versions of Node.js (including v10), but it's a bit annoying to skip the ESM tests in certain Node.js versions.
"mocha": "^9.0.2", | ||
"mocha": "^9.2.0", |
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.
Nice catch that mocha@latest
supports ESM syntax!
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.
Thanks so much for this @benmccann!
Should help with issue #8218, thanks to @benmccann's work in apollographql/invariant-packages#254
This will help add SvelteKit / Vite support (apollographql/apollo-client#8218)
Closes #240
Closes #227