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

WordPress Trac noreply at wordpress.org
Wed Mar 6 15:27:04 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:  Awaiting Review
Component:  Script Loader    |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  javascript
-----------------------------+------------------------------

Comment (by jonsurrell):

 Replying to [comment:2 jonsurrell]:

 > There are some drawbacks to the module proxy approach, mostly that we
 have an additional request for the proxy module. One solution could be to
 print the proxy module inline …

 I don't believe it's possible to print a module with exports inline
 because there is no way to refer to it later, it doesn't have a name or
 URL that other modules can import.

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


More information about the wp-trac mailing list