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
12 cat url-polyfill.min.js >> ../../lib/polyfills/polyfill.js
14 cd ../regenerator-runtime
15 cat runtime.js >> ../../lib/polyfills/polyfill.js
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