Skip to content

Commit

Permalink
Babel plugin instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mishushakov committed May 17, 2023
1 parent 2117393 commit 67d21ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,14 @@ export default function Example() {

In production, you might want to use the babel plugin in order to replace the runtime dependencies (such as `generatedSchema`, `scalarsEnumsHash`) in your client config with statically-generated artifacts.

```json
{
"plugins": [["@garph/gqty/dist/plugin", {
"clientConfig": "./utils/client.ts"
}]]
}
```

Where `clientConfig` is the path to the file where you call `createClient`

*Special thanks to Vicary of GQty project for early feedback and helping to make `@garph/gqty` possible*

0 comments on commit 67d21ca

Please sign in to comment.