Which kotlin/js compiler should I choose? LEGACY o...
# multiplatform
m
Which kotlin/js compiler should I choose? LEGACY or IR
d
If you don't have any legacy requirements, I would use the much more capable IR compiler.
m
What are legacy requirements? Is there a list? I want to compile to Typescript
g
Use IR then
r
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.
Of course sometimes it's not possible (e.g. compose works with IR only).