There was some discussion in the chat around
fetch bindings. There’s some difficulty in writing universal bindings because the web API relies on globals, and node relies on a particular package that implements the API. I would really like to avoid dynamic
require at all costs, so that makes me think that we should have a separate codegen target for Node. This target would be identical to JS, except for FFI resolution:
- First look for a
- Otherwise fallback to a
I think this is a fairly straightforward way to make universal bindings. What do y’all think?