rishabh3112 / graphql-tag-swc-plugin

SWC plugin to expand gql template literal during build itself
https://www.npmjs.com/package/graphql-tag-swc-plugin
MIT License
15 stars 3 forks source link

[BUG] infinite loop for incomplete spread #5

Closed rishabh3112 closed 9 months ago

rishabh3112 commented 10 months ago

Currently version used for apollo_parser crate infinite loop for incomplete spreads in passed graphQL string body. Being a synchronous task it blocks the process, thus no error is thrown and it keeps on running (unless swc's thread for the file timeout).

This is fixed in version 0.50.x via https://github.com/apollographql/apollo-rs/pull/463

Need to add error handling to graphql ast -> swc ast translation for this version upgrade as few cases like empty named type are not being through from apollo_parser at time of parsing query string.