I was looking at <https://youtrack.jetbrains.com/i...
# multiplatform
e
I was looking at https://youtrack.jetbrains.com/issue/KT-61007 I'm trying to understand the why of multiple targets, or multiple compilations, of the same type. Wondering if multi-compilation with the new hierarchical project structure solves the JS Node != Browser issue? Or maybe I just misunderstood the use case.
👀 1
m
I thought Node vs Browser was only a test thing?
e
Well not really. For example, major issues comes up with HTTP APIs, or XML manipulation. Node doesn't have a DOM model
So every time you need to conditionally understand if you're under Node or not.
m
I see. Welp yea, sounds like they should be different targets, just like watchos and ios are different targets 🤔
e
Exactly, but this has been open for ages. In the meantime I was really wondering if a workaround might be different compilations with different source sets
And a "commonJsMain" source sets for both.