graphql-zeus icon indicating copy to clipboard operation
graphql-zeus copied to clipboard

Add flag to generate cross platform Typescript

Open BlueSialia opened this issue 2 years ago • 1 comments

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.

BlueSialia avatar Mar 06 '23 09:03 BlueSialia

of course

aexol avatar Mar 15 '23 16:03 aexol