doesn't work in vite (due to the use of global)
OneCyrus opened this issue · 2 comments
OneCyrus commented
What is the current behavior?
adding this library in a vite project (or generally most modern frameworks) throws an exception with 'global is not defined'. this is due to the node global is not polyfilled in modern frameworks/bundlers.
What is the expected behavior?
no exception and the library can be used out of the box
A little about versions:
- OS: Windows / Ubuntu
- Browser (vendor and version): Chrome 103
- React: 17
react-scrollbars-custom
: 4.1.0- Did this worked in the previous package version? no
xobotyi commented
Should be fine in v4.1.1
OneCyrus commented
perfect, thank you! that works!