wtnbass / fuco

Functional Component like React, but for Web Components.
MIT License
74 stars 2 forks source link

MessageChannel is not defined in node #33

Open dy opened 4 years ago

dy commented 4 years ago

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 4 years ago

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.