Moodle release 4.0.8
[moodle.git] / lib / polyfills / readme_moodle.txt
blob762f707ae9db58a06d5e5b8d72b57ee1e08a45c6
1 The steps are essentially:
2 1) Install required packages
4     npm install --no-save mdn-polyfills url-polyfill regenerator-runtime core-js-bundle
6 2) Join them all together:
8     cd node_modules/mdn-polyfills
9     cat CustomEvent.* Element.* Function.* HTMLCanvasElement.* MouseEvent.* Node.prototype.* NodeList.* > ../../lib/polyfills/polyfill.js
11     cd ../url-polyfill/
12     cat url-polyfill.min.js >> ../../lib/polyfills/polyfill.js
14     cd ../regenerator-runtime
15     cat runtime.js >> ../../lib/polyfills/polyfill.js
17     cd ../core-js-bundle
18     cat minified.js >> ../../lib/polyfills/polyfill.js
19     sed -i '/\/\/\# sourceMappingURL=minified.js.map/d' ../../lib/polyfills/polyfill.js
21 3) Uninstall the packages again
23     npm uninstall --no-save mdn-polyfills url-polyfill regenerator-runtime core-js-bundle