I am trying to release a javascript library from o...
# javascript
a
I am trying to release a javascript library from our Multiplatform code base that will be targeting react native, my question is, which js target is closer to react native??
Copy code
Js(IR) { browser() }
// or
Js(IR) { nodejs() }
b
I'd assume browser due to RN heavy usage of dom apis
On the other hand, they might have their own dom modules, in which case go for nodejs.
a
hahahahaha veeery confusing 😂
this is another call out for other js targets to be honest Instead of
Copy code
js(IR) {
  browser()
  nodejs()
}
we should go for
Copy code
jsBrowser {}
jsNode {}
jsCore {}
// and any other js targets
1
b
I mainly miss jsCore - cross platform js...
a
But is
jsCore
really cross platform js?? I don't think so.
b
It is. It simply doesn't implicitly link against any nodejs or web apis and therefore can be used on both
(that's what I meant by cross platform)
a
I must be confusing it with webkit's JSCore engine then