-
Hi, i am trying to use OverlayScrollbars in Deno, in my case i forced to bundle server side app by webpack and keep libraries from node_modules in bundle In source code of this library there is: const n = t ? window : {};
// ...
const v = t && Node.ELEMENT_NODE; Deno has global variable "window". When I try to run bundle by
How can i solve this? I have to bundle server code. Maybe we can make checks lazy by wrap it into functions? Or maybe change conditions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Good day @krutoo :) This seems to be a quirk in I've published a new version |
Beta Was this translation helpful? Give feedback.
Good day @krutoo :)
This seems to be a quirk in
Deno
, because there thewindow
global is defined. This is not the case inNode
orBun
which is why it doesn't happen in those runtimes.I've published a new version
v2.7.0
which includes an improvement for this issue.