[wp-trac] [WordPress Trac] #52941: Remove `@babel/polyfill` in favor of `core-js/stable`.

WordPress Trac noreply at wordpress.org
Mon Jun 21 12:19:51 UTC 2021


#52941: Remove `@babel/polyfill` in favor of `core-js/stable`.
------------------------------+-----------------------
 Reporter:  desrosj           |       Owner:  desrosj
     Type:  task (blessed)    |      Status:  reopened
 Priority:  normal            |   Milestone:  5.8
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+-----------------------

Comment (by herregroen):

 We're encountering this in Yoast SEO as well when testing with WordPress
 5.8.

 Reading the above I get the impresssion that the main difference is the
 lack of `regenerator-runtime` in `core-js/stable`.

 If that's the case it could be worth looking into the option of keeping
 `wp-polyfill` around only as an alias rather than reverting the change
 entirely and having that alias depend on both the new polyfill package as
 well as a separate `regenerator-runtime` dependency.

 I'm not sure if that covers the full scope of the changes but it could be
 an approach worth looking into.

 That said, I do agree that it's very likely that a lot of plugins and
 themes will depend on `regenerator-runtime` and thus removing it is not an
 option. So either a revert or using `wp-polyfill` as an alias that
 enqueues both should be done.

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


More information about the wp-trac mailing list