MessageChannel is not defined in node
Opened this issue · 1 comments
dy commented
Hi @wtnbass!
Trying to make fuco part of any-hooks - running a problem in nodejs, getting ReferenceError: MessageChannel is not defined
.
Apparently node knows not about MessageChannel API, and proposed replacement for macrotasks in node is setImmediate
.
Would you consider making that work in node? That can be useful for SSR with browser-env, raf/polyfill etc.
wtnbass commented
Thanks for reporting.
I want to fix it, but currently there is no node runtime testing, only browser testing using karma.
so it may take some time.