[wp-trac] [WordPress Trac] #52941: Remove `@babel/polyfill` in favor of `core-js/stable`.
WordPress Trac
noreply at wordpress.org
Wed Mar 31 06:06:36 UTC 2021
#52941: Remove `@babel/polyfill` in favor of `core-js/stable`.
------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.8
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+---------------------
Comment (by gziolo):
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.
Thinking a bit more about other polyfill integrations we might also use
the copy technique for individual scripts. Similar to how other polyfills
in #52854 are handled.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52941#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list