[wp-trac] [WordPress Trac] #60597: Script Modules API: Allow list of enqueued module data to be exposed

WordPress Trac noreply at wordpress.org
Wed Feb 21 23:24:22 UTC 2024


#60597: Script Modules API: Allow list of enqueued module data to be exposed
---------------------------+-----------------------------
 Reporter:  johnbillion    |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:  trunk
 Severity:  normal         |   Keywords:  needs-patch
  Focuses:                 |
---------------------------+-----------------------------
 There's no means for a plugin to fetch a list of registered or enqueued
 script modules for debugging purposes from the Script Modules API as there
 is from the existing Scripts Dependencies API.

 Most likely the `get_import_map()`, `get_marked_for_enqueue()`,
 `get_dependencies()`, and `get_versioned_src()` methods of the
 `WP_Script_Modules` should be made public to facilitate this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60597>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list