Skip to content

Commit

Permalink
fix: Fix dev server crash (#1718)
Browse files Browse the repository at this point in the history
Fixes #1714
Fixes #1705
  • Loading branch information
malcolm-kee authored Nov 24, 2020
1 parent 3e2ff01 commit c39b42f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 27 deletions.
60 changes: 34 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"@types/react-dom": "^16.9.5",
"@types/terser-webpack-plugin": "^2.2.0",
"@types/type-detect": "^4.0.1",
"@types/webpack-dev-server": "^3.4.0",
"@types/webpack-dev-server": "^3.11.1",
"@types/webpack-env": "^1.14.1",
"@typescript-eslint/eslint-plugin": "^4.4.1",
"@typescript-eslint/parser": "^4.4.1",
Expand Down
3 changes: 3 additions & 0 deletions src/scripts/make-webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ export default function (
webpackConfig = merge(webpackConfig, {
entry: [require.resolve('react-dev-utils/webpackHotDevClient')],
plugins: [new webpack.HotModuleReplacementPlugin()],
devServer: {
transportMode: 'ws',
},
});
}

Expand Down

0 comments on commit c39b42f

Please sign in to comment.