joshwnj / react-visibility-sensor

Sensor component for React that notifies you when it goes in or out of the window viewport.
MIT License
2.32k stars 195 forks source link

Switch to rollup package bundling with CJS ES UMD outputs #151

Closed karolis-sh closed 4 years ago

karolis-sh commented 5 years ago

We're having similar issues with CommonJS build like https://github.com/joshwnj/react-visibility-sensor/issues/148

So I updated the build process (ref. https://github.com/joshwnj/react-visibility-sensor/issues/75)

capaj commented 5 years ago

this would also allow to build library into ES6 module. Please merge this!