-
Hello all, I'm using graphql-codegen in my project to generate TypeScript definition types from graphql operations. I first write my operation as GraphQL SDL in a What I want now is to import those types without specifying the The issue is that webpack is first attempting to resolve the actual It it possible? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi! Use |
Beta Was this translation helpful? Give feedback.
-
I've found the right one based on negation! 🎊
Thanks for your help @vankop ! |
Beta Was this translation helpful? Give feedback.
I've found the right one based on negation! 🎊
resolve.restrictions = [/^(.(?!.*\.graphql$))+$/]
is matching everything but strings ending with .graphql, problem solved!Thanks for your help @vankop !