graphql-to-json-schema icon indicating copy to clipboard operation
graphql-to-json-schema copied to clipboard

use this package in the browser

Open pantchox opened this issue 3 years ago • 4 comments

Hello, great lib, wanted to know if there is a possibility this will run from client side browser? Unlike the example in the readme.md the lib requires 'graphql-import-node' which is node.js package.

Thanks!

pantchox avatar Apr 20 '21 13:04 pantchox

any news about this? or a suggestion? thanks

pantchox avatar Aug 08 '21 08:08 pantchox

Hi 👋🏼

I don't see any graphql-import-node dependency in the package-lock.json

Do you have a stacktrace on a web scenario?

charlypoly avatar Sep 17 '21 20:09 charlypoly

it seems like it can work without any issue in the browser

dberardo-com avatar Feb 05 '24 11:02 dberardo-com

however, i would recommend to reimplement the library by yourself in case of browser usage because lodash dependencies could be optimize in terms of size (tree-shaking). the library is just a bunch of files after all

dberardo-com avatar Feb 05 '24 16:02 dberardo-com