Skip to content

Commit

Permalink
Add polyfill for fetch (for IE 11)
Browse files Browse the repository at this point in the history
  • Loading branch information
psdcoder committed Mar 19, 2020
1 parent 76d1516 commit 4a12169
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"slick-carousel": "^1.8.1",
"styled-components": "^4.4.1",
"styled-reset": "^4.0.8",
"unist-util-visit": "2.0.1"
"unist-util-visit": "2.0.1",
"whatwg-fetch": "^3.0.0"
},
"devDependencies": {
"@babel/core": "^7.7.7",
Expand Down
4 changes: 4 additions & 0 deletions src/html.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/* eslint jsx-a11y/html-has-lang:0 */

// polyfills
import 'promise-polyfill/src/polyfill'
import 'whatwg-fetch'

import React from 'react'
import PropTypes from 'prop-types'

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14323,7 +14323,7 @@ [email protected]:
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f"
integrity sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==

whatwg-fetch@>=0.10.0:
whatwg-fetch@>=0.10.0, whatwg-fetch@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz#fc804e458cc460009b1a2b966bc8817d2578aefb"
integrity sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q==
Expand Down

0 comments on commit 4a12169

Please sign in to comment.