Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: add ability to output GraphQL DocumentNode instead of function call + graphql string #282

Open
illusionalsagacity opened this issue Aug 26, 2022 · 0 comments

Comments

@illusionalsagacity
Copy link

In the same vein as babel-plugin-graphql-tag, graphql-ppx could output a GraphQL DocumentNode.

In my mind, this has a few benefits:

  • Eliminates the runtime bundle download and execution cost of including graphql, while not the largest dependency out there, is non-zero at 166.1 kB minified and 39.7kB minified + gzipped
  • Should have faster module evaluation if outputting var documentNode = JSON.parse("<minified_ast>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant