https://kotlinlang.org logo
Title
b

Brian G

07/13/2021, 2:04 PM
Is it possible to use the latest jb-compose plugin without pulling in the web support? (It's not compatible with my JS target)
o

olonho

07/13/2021, 2:44 PM
it should be, @[JB] Shagen @Oleksandr Karpovich [JB] @alexey.tsvetkov
a

alexey.tsvetkov

07/13/2021, 2:50 PM
The following snippet should turn off Compose for Web configuration for all Kotlin/JS targets
compose.web {
     targets() // or targets(*emptyArray())
}
:tnx: 2
BTW what kind of incompatibility do you mean?
☝️ 1
b

Brian G

07/14/2021, 6:18 PM
I use kotlinx serialization in my common module, and this causes IdSignature clash with compose JS target (it's a known/filed issue)
Just to confirm, setting
compose.web { targets() }
to disable JS compose does work, and allows me to use latest compose plugn for my Android/desktop targets without causing the above error 🙂
👍 1