HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.0.30
System: Linux multiplicar 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
User: root (0)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /var/www/html/dls/lib/polyfills/readme_moodle.txt
The steps are essentially:
1) Install mdn-polyfills and url-polyfill packages

    npm install --no-save mdn-polyfills url-polyfill

2) Join them all together:

    cd node_modules/mdn-polyfills
    cat CustomEvent.* Element.* Function.* HTMLCanvasElement.* MouseEvent.* Node.prototype.* NodeList.* > ../../lib/polyfills/polyfill.js
    cd ../url-polyfill/
    cat url-polyfill.min.js >> ../../lib/polyfills/polyfill.js

3) Uninstall the packages again

    npm uninstall --no-save mdn-polyfills url-polyfill