Skip to content

Commit 70a27e5

Browse files
firedejnwng
authored andcommitted
update README.md: add ts-transform-graphql-tag. (#143)
* update README.md: add `ts-transform-graphql-tag`. * Update README.md
1 parent 204cd50 commit 70a27e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ This package only has one feature - it caches previous parse results in a simple
6868

6969
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.
7070

71+
#### TypeScript
72+
Try this custom transformer to pre-compile your GraphQL queries in TypeScript: [ts-transform-graphql-tag](https://github.com/firede/ts-transform-graphql-tag).
73+
7174
#### React Native, Next.js
7275
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.
7376

0 commit comments

Comments
 (0)