[wp-trac] [WordPress Trac] #60647: Script Modules: Allow modules to depend on existing WordPress scripts

WordPress Trac noreply at wordpress.org
Wed Sep 25 16:49:17 UTC 2024


#60647: Script Modules: Allow modules to depend on existing WordPress scripts
--------------------------------------+-------------------------
 Reporter:  jonsurrell                |       Owner:  jonsurrell
     Type:  feature request           |      Status:  assigned
 Priority:  normal                    |   Milestone:  6.7
Component:  Script Loader             |     Version:  6.5
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  javascript
--------------------------------------+-------------------------

Comment (by czapla):

 In [changeset:"59089" 59089]:
 {{{
 #!CommitTicketReference repository="" revision="59089"
 Script Loader: Add `@wordpress/a11y` as a Script Module.

 The Script Module has the same API as the `wp-a11y` WP Script.

 Key changes:
 - Add `@wordpress/a11y` to the list of Script and Module dual packages.
 - Update `script-modules-packages.min.php` to include the a11y module.
 - Modify `WP_Script_Modules` class to track and handle a11y module
 availability.
 - Add method to print required HTML markup for a11y `speak()`
 functionality.

 See #60647.
 Props jonsurrell, gziolo, czapla.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60647#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list