Problem/Motivation
The polyfills in Olivero, located in polyfills.es6.js should be removed/replaced
- JS that requires the
NodeList.forEach()polyfill should use the core library instead:core/drupal.nodelist.foreach - The
Element.matchespolyfill should be moved to a new core librarycore/drupal.element.matchesso all Core JS can use it. Referencecore/misc/polyfills/nodelist.foreach.es6.jsto see the preferred way to format the docs.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3190268.patch | 2.51 KB | mherchel |
Comments
Comment #2
mherchelPatch attached.
Comment #3
nod_That works.
Comment #4
gauravvvv commentedThis patch successfully removed the js/polyfills.js file and removed it from libraries.yml file and added the dependencies.
RTBC +1
Comment #5
catchCommitted fcbdb7b and pushed to 9.2.x. Thanks!
Comment #7
catchJust to note I was a bit confused here, because it says the polyfill could be moved to an 'element.matches' core library - but that library already exists. So the patch is fine it's just the issue summary was either out of date or didn't acknowledge that library already existing.
Comment #8
nod_polyfill was added by the once library, it didn't exist at the time of issue creation