diff --git a/client/webpack-hot-middleware-client.js b/client/webpack-hot-middleware-client.js index 7869bd98024cb..1489b34dba2dc 100644 --- a/client/webpack-hot-middleware-client.js +++ b/client/webpack-hot-middleware-client.js @@ -1,3 +1,4 @@ +import 'event-source-polyfill' import webpackHotMiddlewareClient from 'webpack-hot-middleware/client?autoConnect=false' import Router from '../lib/router' diff --git a/package.json b/package.json index e58f8914cb1da..7c5dbfdf2bee0 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "cross-spawn": "5.1.0", "del": "3.0.0", "etag": "1.8.1", + "event-source-polyfill": "0.0.12", "find-up": "2.1.0", "fresh": "0.5.2", "friendly-errors-webpack-plugin": "1.6.1", diff --git a/yarn.lock b/yarn.lock index 978008c6867ed..943b5621b0a3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2499,6 +2499,10 @@ event-emitter@~0.3.5: d "1" es5-ext "~0.10.14" +event-source-polyfill@0.0.12: + version "0.0.12" + resolved "https://registry.yarnpkg.com/event-source-polyfill/-/event-source-polyfill-0.0.12.tgz#e539cd67fdef2760a16aa5262fa98134df52e3af" + events@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924"