[graphiql] @graphiql/toolkit : Add browser friendly distribution file without require and exports #3358
-
Is there an existing issue for this?
Current BehaviorI am using a single Now I am trying to use Expected BehaviorAn alternative distribution that is browser friendly like es6 etc so that it can be directly consumed via cdn and added in the graphiql index.html Steps To Reproduce
Environment
Anything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Please see the readme: Also you can see our examples for using the CDN bundle: graphiql/examples/graphiql-cdn/index.html Line 52 in 9cc88df (minified UMD bundle) (development, unminified bundle) we have canonically used the same paths, since 2014! |
Beta Was this translation helpful? Give feedback.
-
Hi @acao, this is for |
Beta Was this translation helpful? Give feedback.
Please see the readme:
https://github.com/graphql/graphiql/tree/main/packages/graphiql#umd
Also you can see our examples for using the CDN bundle:
graphiql/examples/graphiql-cdn/index.html
Line 52 in 9cc88df
(minified UMD bundle)
https://unpkg.com/graphiql/graphiql.min.js
(development, unminified bundle)
https://unpkg.com/graphiql/graphiql.js
we have canonically used the same paths, since 2014!