hey guys! im new to multiplatform with kotlin and i was looking into it recently for a personal project and was wondering, whats the difference between different source sets like commonMain and commonJS? if u have any resources to learn more about it would be appreciated! thanks in advance!
d
Derek Ellis
04/28/2021, 3:46 PM
commonMain
is where the kotlin code that can run on any of your platforms goes
commonJS is a way of bundling javascript code, and isn't really related to source sets
w
WukongRework.exe
04/28/2021, 3:47 PM
oh i see, and i presume then that jsMain or jvmMain are specific code that can only run on those platforms?
d
Derek Ellis
04/28/2021, 3:47 PM
Yep!
w
WukongRework.exe
04/28/2021, 3:49 PM
is this anywhere in the docs? i cannot seem to find it