[wp-trac] [WordPress Trac] #56313: Add the ability to handle ES Modules and Import Maps

WordPress Trac noreply at wordpress.org
Tue Jan 23 17:54:41 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 commit                       |  performance
-------------------------------------+-------------------------------------

Comment (by westonruter):

 In [changeset:"57341" 57341]:
 {{{
 #!CommitTicketReference repository="" revision="57341"
 Script Loader: Only emit CDATA wrapper comments in
 `wp_get_inline_script_tag()` for JavaScript.

 This avoids erroneously adding CDATA wrapper comments for non-JavaScript
 scripts, including those for JSON such as the `importmap` for script
 modules in #56313.

 Props westonruter, flixos90, mukesh27, dmsnell.
 See #56313.
 Fixes #60320.
 }}}

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


More information about the wp-trac mailing list