[wp-trac] [WordPress Trac] #56313: Add the ability to handle ES Modules and Import Maps
WordPress Trac
noreply at wordpress.org
Thu Jan 11 19:06:42 UTC 2024
#56313: Add the ability to handle ES Modules and Import Maps
-------------------------------------+-------------------------------------
Reporter: idad5 | Owner: luisherranz
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.5
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit- | Focuses: javascript,
tests | performance
-------------------------------------+-------------------------------------
Changes (by johnbillion):
* keywords: has-patch has-unit-tests commit => has-patch has-unit-tests
* status: closed => reopened
* resolution: fixed =>
Comment:
Nice work on this everyone! I'll reopen this ticket for some follow-up
enhancements. Some of these may warrant separate tickets.
1. The naming consideration raised in the discussion on
https://github.com/WordPress/wordpress-develop/pull/5818
2. This feature only works on the front end, not within the wp-admin area,
is this intentional?
3. Is it desirable or possible for a module to depend on a non-module
script, or vice versa? Should it be?
4. There appears to be no way to fetch the list of enqueued modules like
it is for non-module scripts. I'd like to display the list of enqueued
modules in my Query Monitor plugin but it doesn't seem possible. Perhaps
the `get_marked_for_enqueue()` and `get_dependencies()` methods need to be
public instead of private.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56313#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list