microsoft / graphitation

GraphQL tooling & runtime support needed for MS Teams and beyond
https://microsoft.github.io/graphitation/
MIT License
137 stars 30 forks source link

Add support for artifactDirectory option to webpack loader #404

Closed Markionium closed 4 months ago

Markionium commented 4 months ago

Relay supports writing artifacts to a separate directory. https://relay.dev/docs/guides/type-emission/#single-artifact-directory

In a mono repo with multiple packages writing the artefacts inside other packages in the repo isn't ideal. There might also be conflicting compilers.

This PR adds the artifactDirectory option to the webpack loader to be able to specify where to get the generated documents.