dalphyx / vue-headroom

Headroom for Vuejs
128 stars 16 forks source link

Remove raf polyfill #44

Open nachogarcia opened 3 years ago

nachogarcia commented 3 years ago

RequestAnimationFrame has already widespread support.

It negatively affects the performance for most browsers so probably it would be better if only people targeting legacy browsers provided a polyfill.

Kunwark commented 8 months ago

@dalphyx I think this one should get in. Because of Raf the package has stopped working in vue3. I just installed headroom and I am getting this error:

main.js:12 [Vue Router warn]: Unexpected error when starting the router: SyntaxError: The requested module '/node_modules/raf/index.js?v=a2eac52b' does not provide an export named 'default' (at headroom.vue:2:8)