Hello everybody! I just started trying to develop in kotlin / js and came across a small amount of information on pitfalls (at least in comparison with js). For example, I never found a good explanation of how React.lazy works. Can anyone suggest where to get an example of using lazy / rLazy? I have already despaired in search, there is a function but there is no documentation, or I am blind.
t
turansky
05/12/2021, 1:46 PM
Do you use IR or legacy compiler?
a
Andrey Ivanov
05/12/2021, 1:48 PM
legacy
t
turansky
05/12/2021, 11:28 PM
Standard solution - multiple subprojects with
runtimeOnly
dependencies
a
Andrey Ivanov
05/13/2021, 6:10 AM
First of all, thanks for your feedback. Yes, there is such a solution, but this is not the answer to the question that I asked)
This option was considered, but there is a tool, it is announced, I want to familiarize myself with it. And this solution is a workaround. Conventionally, I bought a Swiss knife, it has scissors, I don't need to buy another Swiss knife to cross two blades and use them instead of scissors.
What's the difference in this context when using IR instead of legacy?
t
turansky
05/13/2021, 10:06 AM
IR technically allows (better than legacy) to use one subproject for multiple entries.
Multiple JS targets can be used or additional compile tasks.
But looks like compile plugin will be required in any case (to scecify exported types) 😞
turansky
05/13/2021, 10:21 AM
I also want to use single subproject for multiple entries (app, components, workers)
If it will not be available in IR, then I will add such posibility to KFC plugins 🙂