Which kotlin/js compiler should I choose? LEGACY or IR
d
David Nedrow
04/19/2022, 4:24 PM
If you don't have any legacy requirements, I would use the much more capable IR compiler.
m
Mendess
04/19/2022, 4:24 PM
What are legacy requirements? Is there a list? I want to compile to Typescript
g
Grégory Lureau
04/19/2022, 4:29 PM
Use IR then
r
Robert Jaros
04/19/2022, 4:38 PM
Currently it's good to keep your code compatible with both compilers. You can use legacy for development, because it is a lot faster, and IR for production, because it creates smaller bundle.
Robert Jaros
04/19/2022, 4:39 PM
Of course sometimes it's not possible (e.g. compose works with IR only).