[wp-trac] [WordPress Trac] #60597: Script Modules API: Allow list of enqueued module data to be exposed
WordPress Trac
noreply at wordpress.org
Mon Feb 26 17:38:35 UTC 2024
#60597: Script Modules API: Allow list of enqueued module data to be exposed
----------------------------+---------------------
Reporter: johnbillion | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.5
Component: Script Loader | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
----------------------------+---------------------
Comment (by johnbillion):
I don't think this can really be considered "internals". The public
`print_import_map()` method mostly just prints a JSON encoded
representation of the data from the `get_import_map()` method which in
turn constructs its data from the methods that I'm proposing should be
public.
In order for my Query Monitor debugging plugin to show info about script
modules in the same way that it does for enqueued scripts and styles, it
needs to be able to fetch a list of enqueued modules
(`get_marked_for_enqueue()`), their dependencies (`get_dependencies()`),
and the full source URL (`get_versioned_src()`).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60597#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list