diff --git a/lib/router/router.js b/lib/router/router.js index e3141a35..a830726a 100644 --- a/lib/router/router.js +++ b/lib/router/router.js @@ -10,7 +10,7 @@ import { _notifyBuildIdMismatch } from './' // Add "fetch" polyfill for older browsers if (typeof window !== 'undefined') { - require('whatwg-fetch') + require('unfetch/polyfill') } export default class Router extends EventEmitter { diff --git a/package.json b/package.json index 04479de4..7536468c 100644 --- a/package.json +++ b/package.json @@ -79,12 +79,12 @@ "source-map-support": "0.4.11", "strip-ansi": "3.0.1", "styled-jsx": "0.5.7", + "unfetch": "2.0.0", "url": "0.11.0", "uuid": "3.0.1", "webpack": "2.2.1", "webpack-dev-middleware": "1.10.1", "webpack-hot-middleware": "2.17.1", - "whatwg-fetch": "2.0.2", "write-file-webpack-plugin": "3.4.2" }, "devDependencies": {