-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
drop create-react-app + swc in-repository test #9060
Conversation
|
99131e2
to
ea4c172
Compare
🚀 Snapshot Release (
|
Package | Version | Info |
---|---|---|
@graphql-codegen/visitor-plugin-common |
3.0.2-alpha-20230301084144-a7cc961b3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-document-nodes |
3.0.2-alpha-20230301084144-a7cc961b3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/gql-tag-operations |
2.0.2-alpha-20230301084144-a7cc961b3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-operations |
3.0.2-alpha-20230301084144-a7cc961b3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-resolvers |
3.1.1-alpha-20230301084144-a7cc961b3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typed-document-node |
3.0.2-alpha-20230301084144-a7cc961b3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript |
3.0.2-alpha-20230301084144-a7cc961b3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/client-preset |
2.1.1-alpha-20230301084144-a7cc961b3 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/graphql-modules-preset |
3.1.1-alpha-20230301084144-a7cc961b3 |
npm ↗︎ unpkg ↗︎ |
💻 Website PreviewThe latest changes are available as preview in: https://0236e772.graphql-code-generator.pages.dev |
The strange thing is that I cannot reproduce the issue locally. I will do some more digging |
@JesseVelden @YassinEldeeb pinned this down to the rust version |
What I also saw is that we need access to the namingConvention, as now the I was assuming that you just need to do that. I guess we can provide it as an option to the SWC plugin, or warn the user instead. I'm not sure how the Babel plugin does that. |
Oh lol, I wouldn't expect that. Great debugging work @YassinEldeeb ! I have 1.66, but will try it with 1.67 now. So, I got the same problem, and this is currently a SWC related problem: swc-project/swc#6807. |
import { CFragmentDoc } from "./../graphql"; | ||
import { BDocument } from "./../graphql"; | ||
import { ADocument } from "./../graphql"; |
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.
@YassinEldeeb The ./
is kind of redundant as ./../graphql
is the same as ../graphql
🤔
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 can improve it in a follow-up PR
Great work guys! I hadn't much time to work on it this week |
this replaces creatr-react-app examples with vite
It also adds an in-repository example for verifying that the swc plugin actually works.