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

WordPress Trac noreply at wordpress.org
Tue Jun 25 14:49:05 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:  6.7
Component:  Script Loader    |     Version:  6.5
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  javascript
-----------------------------+-------------------------

Comment (by jonsurrell):

 Replying to [comment:15 youknowriad]:
 > I see more value personally (for a start) to be able to use modules
 within scripts (lazy load modules). For example a very concrete use-case I
 always bring is to be able to load a "codemirror" module in the editor for
 the code view for instance. I'd like editPost to be able to do `import(
 '@wordpress/codemirror' )` when needed.

 I've created #61500 for allowing Scripts to depend on Script Modules.

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


More information about the wp-trac mailing list