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

WordPress Trac noreply at wordpress.org
Wed Apr 10 10:53:12 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):

 @swissspidy So I just checked using a generator in some random Gutenberg
 script and this is the output that I've got


 {{{
 function* myGenerator() {
   yield 1;
   yield 2;
   yield 3;
 }
 window.myGenerator = myGenerator();
 }}}

 It seems the output kept the generator as is, so I'd say that it's
 probably fine to remove the regenerator-runtime dependency at this point
 from all of our scripts.

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


More information about the wp-trac mailing list