Replies: 2 comments
-
Did you ever figure this out? I also don't seem to have any effect from it. Using the latest forked version compatible with 14.2: https://www.npmjs.com/package/@benjibenji/graphql-codegen-client-preset-swc-plugin |
Beta Was this translation helpful? Give feedback.
0 replies
-
No, and even if I use Babel, it still doesn't do much. I didn't try to change it out for a different lookupethos, but that wasn't compatible with apollow client (works with URQL though). I'll see if I can wrap so etching up. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! Thanks for all the work on these codegen tools, the typescript generation has already helped cache multiple errors in my codebase!
I did try to get @graphql-codegen/client-preset-swc-plugin working with the latest version of nextjs (13.4.2) and haven't been able to observe any bundle size benefits. The chunk that contains all the grpahql queries is exactly the same whether that's enabled or not. Could it be a configuration issue?
Here is my codegen config:
Here is my client-preset-swc-plugin config inside of next.config.js:
Size with plugin enabled:
Size with plugin disabled:
Any help would be appreciated! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions