This fixes an issue I had using vite with react-collapse. Since vite bundles the dependencies as native esm, it uses the code from /src. I'm unsure why it bundles src and not lib. But the problem is that global.clearTimeout result in an error since global is not replaced (like it is in the webpack build).
This fixes an issue I had using vite with react-collapse. Since vite bundles the dependencies as native esm, it uses the code from
/src
. I'm unsure why it bundles src and not lib. But the problem is that global.clearTimeout result in an error since global is not replaced (like it is in the webpack build).