Skip to content

Commit

Permalink
React fast refresh: Fix socket connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Mar 8, 2021
1 parent 224e542 commit d01d851
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/react/src/server/framework-preset-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ export async function webpackFinal(config: Configuration, options: Options) {

return {
...config,
plugins: [...config.plugins, new ReactRefreshWebpackPlugin()],
plugins: [
...config.plugins,
// Storybook uses webpack-hot-middleware https://github.com/storybookjs/storybook/issues/14114
new ReactRefreshWebpackPlugin({
overlay: {
sockIntegration: 'whm',
},
}),
],
};
}

0 comments on commit d01d851

Please sign in to comment.