Skip to content

Commit

Permalink
fix(fetch) polyfill fails SSR JakeChampion/fetch#657
Browse files Browse the repository at this point in the history
  • Loading branch information
clementdevos committed Feb 18, 2020
1 parent 8073600 commit 86b2e3d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"respinner": "^3.0.2",
"uuid": "^3.4.0",
"values.js": "^1.0.3",
"whatwg-fetch": "^3.0.0",
"whatwg-fetch": "^2.0.4",
"use-debounce": "^3.3.0",
"yup": "^0.28.0"
},
Expand Down
3 changes: 1 addition & 2 deletions src/package/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line no-unused-vars
import { fetch as fetchPolyfill } from 'whatwg-fetch';
import 'whatwg-fetch';
import { DeveloperProfile } from './components/profile';

import './styles/global.css';
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12032,6 +12032,11 @@ whatwg-fetch@>=0.10.0, whatwg-fetch@^3.0.0:
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz#fc804e458cc460009b1a2b966bc8817d2578aefb"
integrity sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q==

whatwg-fetch@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f"
integrity sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==

whatwg-mimetype@^2.1.0, whatwg-mimetype@^2.2.0, whatwg-mimetype@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf"
Expand Down

0 comments on commit 86b2e3d

Please sign in to comment.