Skip to content

Ignore raw .graphql files but still try to import files with extension .graphq.ts #12965

Answered by jgoux
jgoux asked this question in Q&A
Discussion options

You must be logged in to vote

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 !

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jgoux
Comment options

@vankop
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jgoux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants