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

WordPress Trac noreply at wordpress.org
Tue Apr 9 17:18:23 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 youknowriad):

 > 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?

 I think regenerator-runtime is there to ensure generator support but
 generators are now supported by all the browsers that we support, so I
 think it's probably not needed anymore
 https://caniuse.com/?search=generators

 We need to check in the "built files" if generators are kept as they are
 (because there could be some option to enable/disable in babel)

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


More information about the wp-trac mailing list