From 3cfb8c224d66b22da4497af5186985a90c813007 Mon Sep 17 00:00:00 2001 From: devinwalker Date: Tue, 20 Oct 2026 09:24:52 -0700 Subject: [PATCH] My Jetpack: Bundle @wordpress/theme so the onboarding wizard renders on WordPress 7.0 The wizard imports ThemeProvider from @wordpress/theme, which was externalized to core's wp-theme script. WordPress 7.0's wp-theme exports only privateApis, so ThemeProvider was undefined and the wizard threw on render. bundleWpUiDeps bundles @wordpress/theme and @wordpress/private-apis, as Boost, Protect and the Jetpack plugin already do. None of My Jetpack's webpack entries unlock private APIs from an external wp-* script. --- .../fix-my-jetpack-onboarding-wizard-wp-70-theme | 4 ++++ projects/packages/my-jetpack/webpack.config.js | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 projects/packages/my-jetpack/changelog/fix-my-jetpack-onboarding-wizard-wp-70-theme 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: [