[wp-trac] [WordPress Trac] #52946: Replace deprecate @babel/polyfill package

WordPress Trac noreply at wordpress.org
Wed Mar 31 05:34:50 UTC 2021


#52946: Replace deprecate @babel/polyfill package
--------------------------------+-------------------------
 Reporter:  gziolo              |       Owner:  (none)
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  5.8
Component:  External Libraries  |     Version:  trunk
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  javascript
--------------------------------+-------------------------
Description changed by gziolo:

Old description:

> Extracted from #52854.
>  Related issues in Gutenberg repository with more details:
> https://github.com/WordPress/gutenberg/issues/22417.
>
> According to https://babeljs.io/docs/en/babel-polyfill, @babel/polyfill
> got deprecated
>
> It looks like we need to create a webpack entry point that imports `core-
> js` and `regenerator-runtime`.
>
> {{{
> import 'core-js/stable';
> import 'regenerator-runtime/runtime';
> }}
>
> They aren't defined as dependencies in `package.json` at the moment.

New description:

 Extracted from #52854.
  Related issues in Gutenberg repository with more details:
 https://github.com/WordPress/gutenberg/issues/22417.

 According to https://babeljs.io/docs/en/babel-polyfill, @babel/polyfill
 got deprecated

 It looks like we need to create a webpack entry point that imports `core-
 js` and `regenerator-runtime`.

 {{{
 import 'core-js/stable';
 import 'regenerator-runtime/runtime';
 }}}

 They aren't defined as dependencies in `package.json` at the moment.

--

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


More information about the wp-trac mailing list