[wp-trac] [WordPress Trac] #60962: Remove now unnecessary polyfill dependencies
WordPress Trac
noreply at wordpress.org
Thu Apr 11 08:52:12 UTC 2024
#60962: Remove now unnecessary polyfill dependencies
---------------------------------------------+--------------------------
Reporter: swissspidy | Owner: swissspidy
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.6
Component: Script Loader | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit needs-dev-note | Focuses: performance
---------------------------------------------+--------------------------
Comment (by youknowriad):
I've been thinking a bit more here. It is possible that some plugins are
declaring `wp-polyfill` as a dependency but are still compiling generators
to use the generator runtime. It would be a small breaking change for
these plugins.
To be honest, I have no idea if there are such plugins and their numbers,
but thought I'd mention.
We could advise them to:
- Update their build tools to not transpile generators.
- Add `regenerator-runtime` dependency explicitly.
I'd probably recommend handling that in the dev note for now (and keep an
eye on feedback).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60962#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list