graphql-zeus
graphql-zeus copied to clipboard
Add flag to generate cross platform Typescript
Currently the Client Library Generator creates a client for browser by default, but with the --node flag we can create a client for NodeJS.
I've noticed the only difference between them is that the client for node imports node-fetch and ws.
Would it be possible to have a flag, say --isomorphic, that will produce a client that imports isomorphic-fetch (or cross-fetch) and isomorphic-ws?
I want to use the Zeus client in both platforms and I currently add those imports manually everytime I generate the client.
of course