From 94ad28929de91c447d31840664c22041a1bbcb97 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Wed, 21 Jun 2023 12:43:52 -0400 Subject: [PATCH] Jetpack: Remove use of `react-redux/lib/alternate-renderers` 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. --- ...remove-no-longer-needed-react-redux-alternate-renderers | 5 +++++ projects/plugins/jetpack/tools/webpack.config.js | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 projects/plugins/jetpack/changelog/remove-no-longer-needed-react-redux-alternate-renderers diff --git a/projects/plugins/jetpack/changelog/remove-no-longer-needed-react-redux-alternate-renderers b/projects/plugins/jetpack/changelog/remove-no-longer-needed-react-redux-alternate-renderers new file mode 100644 index 0000000000000..8640582b94beb --- /dev/null +++ b/projects/plugins/jetpack/changelog/remove-no-longer-needed-react-redux-alternate-renderers @@ -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. + + diff --git a/projects/plugins/jetpack/tools/webpack.config.js b/projects/plugins/jetpack/tools/webpack.config.js index 137e3742792ea..2eb7aeaa98205 100644 --- a/projects/plugins/jetpack/tools/webpack.config.js +++ b/projects/plugins/jetpack/tools/webpack.config.js @@ -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,