Skip to content

Commit 11599cc

Browse files
committed
Add fetch polyfill
1 parent 95dc8f0 commit 11599cc

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

components/Meetup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react'
22
import format from 'date-fns/format'
3+
import 'whatwg-fetch'
34
import { config } from 'config'
45

56
const NEXT_MEETUP_URI = config.apiRoot

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"react-typography": "^0.15.0",
2525
"toml-js": "0.0.8",
2626
"typography": "^0.15.0",
27-
"typography-plugin-code": "^0.15.0"
27+
"typography-plugin-code": "^0.15.0",
28+
"whatwg-fetch": "^2.0.3"
2829
},
2930
"devDependencies": {
3031
"gh-pages": "^0.12.0"

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6530,7 +6530,7 @@ webpack@^1.11.0, webpack@^1.12.9, webpack@^1.13.2:
65306530
watchpack "^0.2.1"
65316531
webpack-core "~0.6.9"
65326532

6533-
whatwg-fetch@>=0.10.0:
6533+
whatwg-fetch@>=0.10.0, whatwg-fetch@^2.0.3:
65346534
version "2.0.3"
65356535
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84"
65366536

0 commit comments

Comments
 (0)