File tree 3 files changed +0
-6
lines changed
3 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,6 @@ And then use it:
115
115
import * as React from ' react' ;
116
116
import * as ReactDOM from ' react-dom' ;
117
117
import { Voyager } from ' graphql-voyager' ;
118
- import fetch from ' isomorphic-fetch' ;
119
118
120
119
function introspectionProvider (query ) {
121
120
return fetch (window .location .origin + ' /graphql' , {
Original file line number Diff line number Diff line change 14
14
</ style >
15
15
16
16
<!--
17
- This GraphQL Voyager example depends on Promise and fetch, which are available in
18
- modern browsers, but can be "polyfilled" for older browsers.
19
17
GraphQL Voyager itself depends on React DOM.
20
18
If you do not want to rely on a CDN, you can host these files locally or
21
19
include them directly in your favored resource bunder.
22
20
-->
23
- < script src ="https://cdn.jsdelivr.net/es6-promise/4.0.5/es6-promise.auto.min.js "> </ script >
24
- < script src ="https://cdn.jsdelivr.net/fetch/0.9.0/fetch.min.js "> </ script >
25
21
< script src ="https://cdn.jsdelivr.net/npm/react@16/umd/react.production.min.js "> </ script >
26
22
< script src ="https://cdn.jsdelivr.net/npm/react-dom@16/umd/react-dom.production.min.js "> </ script >
27
23
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ export default function renderVoyagerPage(options: MiddlewareOptions) {
31
31
<link rel="stylesheet"
32
32
href="https://cdn.jsdelivr.net/npm/graphql-voyager@${ version } /dist/voyager.css"
33
33
/>
34
- <script src="https://cdn.jsdelivr.net/fetch/2.0.1/fetch.min.js"></script>
35
34
<script src="https://cdn.jsdelivr.net/npm/react@16/umd/react.production.min.js"></script>
36
35
<script src="https://cdn.jsdelivr.net/npm/react-dom@16/umd/react-dom.production.min.js"></script>
37
36
<script src="https://cdn.jsdelivr.net/npm/graphql-voyager@${ version } /dist/voyager.min.js"></script>
You can’t perform that action at this time.
0 commit comments