sergiop / react-giphy-searchbox

Responsive and customizable search and select for Giphy's GIFs and Stickers.
https://sergiop.github.io/react-giphy-searchbox/
MIT License
48 stars 19 forks source link

Uncaught ReferenceError: module is not defined #63

Closed arekucr closed 2 years ago

arekucr commented 2 years ago

The component have a dependency to webpack module.hot, if you try to use it with vite, it fails with error

Uncaught ReferenceError: module is not defined

if (module.hot) { module.hot.dispose(function () { styles.forEach(function (style) { if (document.head.contains(style)) { document.head.removeChild(style); } }); styles.clear(); }); }