From 70a27e57bd0a13f3f99231df66af01d5d2324949 Mon Sep 17 00:00:00 2001 From: Firede Date: Wed, 7 Feb 2018 01:57:16 +0800 Subject: [PATCH] update README.md: add `ts-transform-graphql-tag`. (#143) * update README.md: add `ts-transform-graphql-tag`. * Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 863cf5e1..f8432d7f 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,9 @@ This package only has one feature - it caches previous parse results in a simple GraphQL queries can be compiled at build time using [babel-plugin-graphql-tag](https://github.com/gajus/babel-plugin-graphql-tag). Pre-compiling queries decreases the script initialization time and reduces the bundle size by potentially removing the need for `graphql-tag` at runtime. +#### TypeScript +Try this custom transformer to pre-compile your GraphQL queries in TypeScript: [ts-transform-graphql-tag](https://github.com/firede/ts-transform-graphql-tag). + #### React Native, Next.js Additionally, in certain situations, preprocessing queries via the webpack loader is not possible. [babel-plugin-inline-import-graphql-ast](https://www.npmjs.com/package/babel-plugin-inline-import-graphql-ast) will allow one to import graphql files directly into your JavaScript by preprocessing GraphQL queries into ASTs at compile-time.