Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a6c57d commit 216efa5Copy full SHA for 216efa5
lib/router/router.js
@@ -10,7 +10,7 @@ import { _notifyBuildIdMismatch } from './'
10
11
// Add "fetch" polyfill for older browsers
12
if (typeof window !== 'undefined') {
13
- require('whatwg-fetch')
+ require('unfetch/polyfill')
14
}
15
16
export default class Router extends EventEmitter {
package.json
@@ -79,12 +79,12 @@
79
"source-map-support": "0.4.11",
80
"strip-ansi": "3.0.1",
81
"styled-jsx": "0.5.7",
82
+ "unfetch": "2.0.0",
83
"url": "0.11.0",
84
"uuid": "3.0.1",
85
"webpack": "2.2.1",
86
"webpack-dev-middleware": "1.10.1",
87
"webpack-hot-middleware": "2.17.1",
- "whatwg-fetch": "2.0.2",
88
"write-file-webpack-plugin": "3.4.2"
89
},
90
"devDependencies": {
0 commit comments