Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#52946 closed enhancement (duplicate)

Replace deprecate @babel/polyfill package

Reported by: gziolo's profile gziolo Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.8
Component: External Libraries Keywords:
Focuses: javascript Cc:

Description (last modified by gziolo)

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.

Change History (3)

#1 @gziolo
4 years ago

  • Description modified (diff)

#2 @ocean90
4 years ago

  • Milestone 5.8 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #52941.

#3 @gziolo
4 years ago

I missed that. I commented on the ticket opened by @desrosj :)

Note: See TracTickets for help on using tickets.