From 21c0b41a4e13e360b54bfdbf241e79faef354275 Mon Sep 17 00:00:00 2001 From: Sam Seay Date: Wed, 22 Oct 2025 17:29:25 +0800 Subject: [PATCH 1/2] Add an exclusion to prevent building full-page of interactivity-router The full-page wpScriptModuleExport defined in interactivity-router should not be bundled in Wordpress core yet as it is experimental. There is no mechanism in wpScriptModuleExports right now that supports building a script module but not including it in core. Since this is likely to be a rare instance we have opted to hard-code an exclusion in core's build until this module is no longer experimental. --- tools/webpack/script-modules.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/webpack/script-modules.js b/tools/webpack/script-modules.js index 2975434d6be2e..2c8ae75d01423 100644 --- a/tools/webpack/script-modules.js +++ b/tools/webpack/script-modules.js @@ -48,6 +48,13 @@ for ( const packageName of MODULES.concat( SCRIPT_AND_MODULE_DUAL_PACKAGES ) ) { for ( const [ exportName, exportPath ] of Object.entries( wpScriptModuleExports ) ) { + // Exclude the experimental './full-page' export from @wordpress/interactivity-router. + // This export is defined in Gutenberg's package.json but should not be bundled in Core + // as the feature is still experimental and not ready for inclusion. + if ( moduleName === 'interactivity-router' && exportName === './full-page' ) { + continue; + } + if ( typeof exportPath !== 'string' ) { throw new Error( 'wpScriptModuleExports paths must be strings' ); } From 06a891f6278802866c7048734575e99550b398ab Mon Sep 17 00:00:00 2001 From: "wordpress-develop-pr-bot[bot]" <1178653+wordpress-develop-pr-bot[bot]@users.noreply.github.com> Date: Wed, 22 Oct 2025 09:42:40 +0000 Subject: [PATCH 2/2] Automation: Updating built files with changes. [dependabot skip] --- src/wp-includes/assets/script-modules-packages.min.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/assets/script-modules-packages.min.php b/src/wp-includes/assets/script-modules-packages.min.php index 37a299eab06ce..5f1f262944d22 100644 --- a/src/wp-includes/assets/script-modules-packages.min.php +++ b/src/wp-includes/assets/script-modules-packages.min.php @@ -1 +1 @@ - array('dependencies' => array(), 'version' => '441cab46d043b0a45f6f', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => '4b216ecdeb745ab1b420', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '765a6ee8162122b48e6c', 'type' => 'module'), 'interactivity-router/full-page.min.js' => array('dependencies' => array(array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'ac76172d5956969e2227', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/accordion/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '5fa6ee20ae87460b9868', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'f9665632b48682075277', 'type' => 'module'), 'block-library/form/view.min.js' => array('dependencies' => array(), 'version' => 'baaf25398238b4f2a821', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '26816800d42394b0a5f5', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '3d4d582d5a6b3cf1185b', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'f55e93a1ad4806e91785', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '208bf143e4074549fa89', 'type' => 'module'), 'block-editor/utils/fit-text-frontend.min.js' => array('dependencies' => array(), 'version' => '6e035d66824ec76d9de1', 'type' => 'module')); + array('dependencies' => array(), 'version' => '441cab46d043b0a45f6f', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => '4b216ecdeb745ab1b420', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '765a6ee8162122b48e6c', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/accordion/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '5fa6ee20ae87460b9868', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'f9665632b48682075277', 'type' => 'module'), 'block-library/form/view.min.js' => array('dependencies' => array(), 'version' => 'baaf25398238b4f2a821', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '26816800d42394b0a5f5', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '3d4d582d5a6b3cf1185b', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'f55e93a1ad4806e91785', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '208bf143e4074549fa89', 'type' => 'module'), 'block-editor/utils/fit-text-frontend.min.js' => array('dependencies' => array(), 'version' => '6e035d66824ec76d9de1', 'type' => 'module'));