Skip to content

Commit

Permalink
fix(core): added event source polyfill in develop to fix IE/edge hmr (#…
Browse files Browse the repository at this point in the history
…11582)

fixes #11495

## Description

Added event source polyfill in develop mode for IE. I am not sure how to test the CLI after making these changes, would need some pointers for that.

Co-authored-by: Dustin Schau <DSchau@users.noreply.github.com>
  • Loading branch information
2 people authored and wardpeet committed Feb 13, 2019
1 parent 3024839 commit 8a6db6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/gatsby/package.json
Expand Up @@ -54,6 +54,7 @@
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.8.2",
"event-source-polyfill": "^1.0.5",
"express": "^4.16.3",
"express-graphql": "^0.6.12",
"fast-levenshtein": "~2.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/gatsby/src/utils/webpack.config.js
Expand Up @@ -149,6 +149,7 @@ module.exports = async (
case `develop`:
return {
commons: [
`event-source-polyfill`,
`${require.resolve(
`webpack-hot-middleware/client`
)}?path=${getHmrPath()}`,
Expand Down

0 comments on commit 8a6db6a

Please sign in to comment.