Akryum / vue-virtual-scroller

⚡️ Blazing fast scrolling for any amount of data
https://vue-virtual-scroller-demo.netlify.app
9.68k stars 912 forks source link

IE 11 incompatibility due to use of .includes() and .findIndex() #173

Open polendri opened 5 years ago

polendri commented 5 years ago

The docs describe using the intersection observer polyfill in order to support older browsers like IE, but they don't describe additional requirements to polyfill functions like Array.prototype.includes and Array.prototype.findIndex.

It'd be great if usage of those functions could be avoided or, at the very least, have their usage documented so that any poor souls supporting IE know what to polyfill.

If anyone else runs into this, if you're not auto-polyfilling using babel-preset-env then the following is sufficient as of v1.0.0-rc.2:

import "core-js/modules/es.array.find-index";
import "core-js/modules/es.array.includes";
import "intersection-observer"
jcmillett commented 5 years ago

This is a huge problem for us as IE is one of our most used browsers (I know, I wish it wasn't so). It would be great if this was fixed so we could actually use this dependency in our project.