From e752db02ae0a2b4da170fdc8b96d0d2a6eb30c11 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Fri, 6 Sep 2024 14:28:43 +0200 Subject: [PATCH] Add script dependency to 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 629986630cf9d8..de774c03c4eb65 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.min.js' ), - array( '@wordpress/interactivity' ), + array( + array( 'id' => '@wordpress/a11y', 'import' => 'dynamic' ), + '@wordpress/interactivity', + ), $default_version ); }