Trying to run webpack on IE11 (yes it’s completely sadomasochistic). Need to implement a polyfill for a feature IE11 doesn’t support called EventSource. Here’s the error:
webpack-hot-middleware's client requires EventSource to work. You should include a polyfill if you want to support this browser: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events#Tools
And here is the most likely polyfill.
But I’m not sure how to implement in the build scripts Though here is an example that references the above polyfill at the end of discussion of a slightly different polyfill.
Internet Explorer. Fake browser.