maslianok / react-resize-detector

A Cross-Browser, Event-based, Element Resize Detection for React
http://maslianok.github.io/react-resize-detector/
MIT License
1.25k stars 91 forks source link

fix: polyfill usage #137

Closed khmm12 closed 3 years ago

khmm12 commented 3 years ago

ResizeObserver and window.ResizeObserver are different constants from rollup-plugin-inject parser point of view.

It should either ResizeObserver in the code or window.ResizeObserver in rollup-plugin-inject replacements.

lucascaro commented 3 years ago

I can confirm the polyfills seem to not be working at the moment:

error

maslianok commented 3 years ago

Thank you! 👍