[wp-trac] [WordPress Trac] #60962: Remove now unnecessary polyfill dependencies
WordPress Trac
noreply at wordpress.org
Wed Apr 10 14:40:21 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 | Focuses: performance
------------------------------+--------------------------
Changes (by swissspidy):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"57981" 57981]:
{{{
#!CommitTicketReference repository="" revision="57981"
Script Loader: stop enqueueing some now obsolete polyfills.
Stop enqueueing polyfills such as `wp-polyfill-inert` (for the `inert`
attribute) and `regenerator-runtime` (for generator functions), as they
are no longer needed, considering the WordPress project's
[https://make.wordpress.org/core/handbook/best-practices/browser-support/
browser support policy].
In addition to that, `wp-polyfill` (essentially `core-js`) is no longer
enqueued as a dependency of `react`. This was added in [43903] to ensure
compatibility with IE 11, which is no longer supported by WordPress.
Developers requiring `wp-polyfill` need to manually add it as a dependency
for their scripts.
Props swissspidy, flixos90, adamsilverstein, youknowriad, gziolo.
Fixes #60962.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60962#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list