Hi all, I’m trying to create a MPP project targeting JVM and JS. I need to parse some HTML pages. I’m planning to use Jsoup on JVM and Cheerio on JS… but is it possible to add a npm dependency to the JS source set? like we would do on a Kotlin/JS project? And if that’s possibile, what is wrong with this?
jvmMain {
dependencies {
...
implementation "org.jsoup:jsoup:1.13.1"
}
}
jsMain {
dependencies {
...
implementation(npm("cheerio"))
}
}