From 672d078d33dab50a9cb66ddacab179bbf71c3bd0 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Fri, 6 Sep 2024 14:28:43 +0200 Subject: [PATCH] Add interacitivty-router script dependency on a11y --- lib/interactivity-api.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/interactivity-api.php b/lib/interactivity-api.php index 90535f1ebaa42f..c1a835e3547c7b 100644 --- a/lib/interactivity-api.php +++ b/lib/interactivity-api.php @@ -24,7 +24,10 @@ function gutenberg_reregister_interactivity_script_modules() { wp_register_script_module( '@wordpress/interactivity-router', gutenberg_url( '/build-module/interactivity-router/index.min.js' ), - array( '@wordpress/interactivity' ), + array( + array( 'id' => '@wordpress/a11y', 'import' => 'dynamic' ), + '@wordpress/interactivity', + ), $default_version ); }