Skip to content

Commit

Permalink
Jetpack: Remove use of react-redux/lib/alternate-renderers
Browse files Browse the repository at this point in the history
We added this in #24306 because the static-site-generator build was
hanging without it. But it seems that something when we updated to React
18 made it no longer necessary, so let's remove it.
  • Loading branch information
anomiex committed Jun 21, 2023
1 parent 540064c commit 94ad289
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: other
Comment: Adjust build to remove no-longer-needed use of `react-redux/lib/alternate-renderers`. Should be no change to the plugin itself.


7 changes: 0 additions & 7 deletions projects/plugins/jetpack/tools/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,6 @@ module.exports = [
...sharedWebpackConfig.output,
libraryTarget: 'commonjs2',
},
resolve: {
...sharedWebpackConfig.resolve,
alias: {
...sharedWebpackConfig.resolve.alias,
'react-redux': require.resolve( 'react-redux/lib/alternate-renderers' ),
},
},
plugins: [
...jetpackWebpackConfig.StandardPlugins( {
DependencyExtractionPlugin: false,
Expand Down

0 comments on commit 94ad289

Please sign in to comment.