Closed arekucr closed 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(); }); }
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(); }); }