[wp-trac] [WordPress Trac] #60962: Remove `wp-polyfill` dependency from `react`

WordPress Trac noreply at wordpress.org
Tue Apr 9 14:54:45 UTC 2024


#60962: Remove `wp-polyfill` dependency from `react`
---------------------------+--------------------------
 Reporter:  swissspidy     |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  6.6
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  performance
---------------------------+--------------------------

Comment (by swissspidy):

 > Indeed, we can remove "inert" but I wonder if we should keep the an
 empty script handle around for third-parties.

 I think for now we can probably simply not make it a dependency of `wp-
 polyfill` anymore, so that it doesn't get automatically loaded for
 everyone using `wp-polyfill`.

 Related to that, does `regenerator-runtime` need to be loaded all the time
 as well? Can this be loaded on demand instead by projects explicitly
 enqueuing it if they need it?

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


More information about the wp-trac mailing list