Skip to content

Commit

Permalink
Drop polyfills from examples and README
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 29, 2022
1 parent 1237d54 commit b773059
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ And then use it:
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Voyager } from 'graphql-voyager';
import fetch from 'isomorphic-fetch';

function introspectionProvider(query) {
return fetch(window.location.origin + '/graphql', {
Expand Down
4 changes: 0 additions & 4 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@
</style>

<!--
This GraphQL Voyager example depends on Promise and fetch, which are available in
modern browsers, but can be "polyfilled" for older browsers.
GraphQL Voyager itself depends on React DOM.
If you do not want to rely on a CDN, you can host these files locally or
include them directly in your favored resource bunder.
-->
<script src="https://cdn.jsdelivr.net/es6-promise/4.0.5/es6-promise.auto.min.js"></script>
<script src="https://cdn.jsdelivr.net/fetch/0.9.0/fetch.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/react@16/umd/react.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/react-dom@16/umd/react-dom.production.min.js"></script>

Expand Down
1 change: 0 additions & 1 deletion src/middleware/render-voyager-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export default function renderVoyagerPage(options: MiddlewareOptions) {
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/graphql-voyager@${version}/dist/voyager.css"
/>
<script src="https://cdn.jsdelivr.net/fetch/2.0.1/fetch.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/react@16/umd/react.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/react-dom@16/umd/react-dom.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/graphql-voyager@${version}/dist/voyager.min.js"></script>
Expand Down

0 comments on commit b773059

Please sign in to comment.