Skip to content

Commit 584c3c5

Browse files
authored
Remove unsupported overlay property for ReactRefreshWebpackPlugin
The v0.6.0 release introduced breaking changes which removed `sockPort` as a property https://github.com/pmmmwh/react-refresh-webpack-plugin/releases/tag/v0.6.0. (pr: pmmmwh/react-refresh-webpack-plugin#850). This updates the generator template for development.js to no longer pass the property. This was tested by successfully creating a new rails 8.0.2 project with ReactRefreshWebpackPlugin 0.6.1 and following the tutorial (https://www.shakacode.com/react-on-rails/docs/guides/tutorial/)
1 parent b9987b7 commit 584c3c5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/generators/react_on_rails/templates/base/base/config/webpack/development.js.tt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ const developmentEnvOnly = (clientWebpackConfig, _serverWebpackConfig) => {
1313
// eslint-disable-next-line global-require
1414
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
1515
clientWebpackConfig.plugins.push(
16-
new ReactRefreshWebpackPlugin({
17-
overlay: {
18-
sockPort: devServer.port,
19-
},
20-
}),
16+
new ReactRefreshWebpackPlugin({}),
2117
);
2218
}
2319
};

0 commit comments

Comments
 (0)