jQuery-SlotMachine
jQuery-SlotMachine copied to clipboard
Using polyfill to make slot machine work with IE
I have noticed that slot machine does not work with IE.
So while I personally feel this is totally ok, because IE is such bad stuff that has hampered web dev for such a long time, there might be cases where IE compatibility maybe important for a project. I am working on such a project recently ...
So I found that using Babel Polyfill (https://babeljs.io/docs/usage/polyfill/) makes slot machine work with IE (tested in IE11 at least).
So maybe this might be worth a hint in the readme.
Hello @stefan-korn. I forgot what is IE a few years ago XD
Just kidding... To solve this I recommend you to build the source files located in the npm package (lib/ directory). Just add the main file (lib/index.js) to your pipeline (Webpack, Gulp, ...) adding the babel preset to be able to import it in your application.