diff --git a/projects/packages/my-jetpack/changelog/fix-my-jetpack-onboarding-wizard-wp-70-theme b/projects/packages/my-jetpack/changelog/fix-my-jetpack-onboarding-wizard-wp-70-theme new file mode 100644 index 000000000000..5c797bdf6a71 --- /dev/null +++ b/projects/packages/my-jetpack/changelog/fix-my-jetpack-onboarding-wizard-wp-70-theme @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Onboarding: Fix the setup wizard failing to render on WordPress 7.0. diff --git a/projects/packages/my-jetpack/webpack.config.js b/projects/packages/my-jetpack/webpack.config.js index 5de8e5abf6b0..1d80a147614b 100644 --- a/projects/packages/my-jetpack/webpack.config.js +++ b/projects/packages/my-jetpack/webpack.config.js @@ -23,7 +23,13 @@ export default [ ...jetpackWebpackConfig.resolve, }, node: false, - plugins: [ ...jetpackWebpackConfig.StandardPlugins() ], + plugins: [ + ...jetpackWebpackConfig.StandardPlugins( { + DependencyExtractionPlugin: { + bundleWpUiDeps: true, + }, + } ), + ], module: { strictExportPresence: true, rules: [