[wp-trac] [WordPress Trac] #52854: Update polyfill libraries

WordPress Trac noreply at wordpress.org
Tue Mar 30 10:05:09 UTC 2021


#52854: Update polyfill libraries
--------------------------------+-------------------------
 Reporter:  desrosj             |       Owner:  (none)
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  5.8
Component:  External Libraries  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |     Focuses:  javascript
--------------------------------+-------------------------

Comment (by gziolo):

 They aren't listed in the Gutenberg plugin anymore because they are
 handled in WordPress core here:

 https://github.com/WordPress/wordpress-
 develop/blob/32e8cd1c2d0a006758d0b88dc3cfa59096cc1776/tools/webpack/packages.js#L76-L83

 My quick guess is - as long as we support IE 11 we need all those
 polyfills so it would be a good idea to upgrade them.

 I also see that `@babel/polyfill` is deprecated and should be replaced
 with `core-js/stable`:
 https://babeljs.io/docs/en/babel-polyfill

 It also looks like we need to sync the version of `objectFitPolyfill` in
 the Gutenberg plugin as it is outdated (it adds it for older versions of
 WP):

 https://github.com/WordPress/gutenberg/blob/169a0cab4d6ee263014313276d60df970dd8c608/lib
 /client-assets.php#L213-L223

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


More information about the wp-trac mailing list