Cannot Use in IE11
Closed this issue · 2 comments
It appears that the exported index.js does not supported IE11 usage, primarily from the class
declaration on line 5. Unfortunately, IE11 does not support ES6 classes: https://caniuse.com/#feat=es6-class
I've attempted replacing the index.js with code from the index.min.js and found that it works as intended. Would it be possible to change the deployed package to have an index.js that is the babelified / minified version and not the pure ES6 one?
How did you import it? npm takes care of this for you (the entry point "main" points to index.min.js). The deployed package doesn't even carry the ES6-file (ignored with .npmignore). Furthermore, I use this package on my own site, which is 100% supported on IE11 (www.svenardo.com).