diesieben07
10/15/2019, 11:59 PMBig Chungus
10/16/2019, 6:35 AMBig Chungus
10/16/2019, 6:35 AMdiesieben07
10/16/2019, 7:27 AMBig Chungus
10/16/2019, 7:46 AMBig Chungus
10/16/2019, 7:46 AMdiesieben07
10/16/2019, 7:47 AMBig Chungus
10/16/2019, 7:48 AMBig Chungus
10/16/2019, 7:48 AMdiesieben07
10/16/2019, 7:50 AMdiesieben07
10/16/2019, 7:50 AMBig Chungus
10/16/2019, 7:52 AMBig Chungus
10/16/2019, 7:52 AMdiesieben07
10/16/2019, 7:56 AMBig Chungus
10/16/2019, 7:57 AMdiesieben07
10/16/2019, 8:05 AMIlya Goncharov [JB]
10/16/2019, 8:55 AMnodejs
subtarget (if you don’t want to test you Kotlin/JS in browser), and use task compileKotlinJs
If you can apply DCE, you need to apply DCE plugin manually, and it should work. After that you can use DCE’d files in your Angular applicationdiesieben07
10/16/2019, 8:57 AMmin
version of the code if I run the DCE task, but the DCE'd Kotlin is just the entire stdlib, even though my code is a single function that does not use anything from the stdlibIlya Goncharov [JB]
10/16/2019, 9:12 AMrunDceJsKotlin
it produces mpp/build/kotlin-js-min/js/main
folder with kotlin.js
with size ~119kB which is much smaller than original kotlin.js
with its size more than 2 MB (you can find it in build/js/packages_imported/kotlin/1.3.50/kotlin.js
)
It seems that DCE works
Unfortunately even if you don’t use explicitly some Kotlin’s declarations, it is necessary for some runtime checks and etcdiesieben07
10/16/2019, 9:21 AMIlya Goncharov [JB]
10/16/2019, 9:26 AMdiesieben07
10/16/2019, 9:27 AMIt is related that DCE works with JavaScript codeI see. That explains it. With that it's impressive it works at all 😄
diesieben07
10/16/2019, 9:27 AM