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

[Question] How does the functionality of this plugin differ from the babel plugin? #1

Open dmaklygin opened 1 year ago

dmaklygin commented 1 year ago

Hello! Thank you for providing the graphql-tag-swc-plugin. I'm curious to know how this plugin differs from the base Babel plugin in terms of its API and final output. Could you explain the unique features or optimizations that your plugin offers compared to the base plugin, particularly in the context of parsing and optimizing GraphQL queries?

rishabh3112 commented 7 months ago

It is intended to be drop-in replacement for the same. Currently it is not 🙃 EDIT: we are almost there - check now!

rishabh3112 commented 7 months ago

@dmaklygin you can give it a try now! I have made this almost one to one with babel one now.

dmaklygin commented 6 months ago

Great! Thank you, @rishabh3112 ! I'll check