[wp-trac] [WordPress Trac] #56313: Add the ability to handle ES Modules and Import Maps
WordPress Trac
noreply at wordpress.org
Fri Dec 22 15:05:40 UTC 2023
#56313: Add the ability to handle ES Modules and Import Maps
-------------------------------------+-------------------------------------
Reporter: idad5 | Owner: luisherranz
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit- | Focuses: javascript,
tests | performance
-------------------------------------+-------------------------------------
Comment (by jorbin):
Thanks for the initial patch @luisherranz, a few questions and thoughts
that come to me right away:
Can you explain why this reinvents dependency management rather than
working off of `WP_Dependencies` or `_WP_Dependency`?
You mention not having registration and enqueuing together but don't
include any rationale behind why extenders of WordPress should need to
maintain two different mental models for how external files are loaded
into the HTML.
I like the separation of dynamic and static modules, something that I
think will be extremely helpful is if there is documentation to help guide
developers in making the decision of which one to use.
A useful test would be for circular dependency.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56313#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list