Anthony Pages
10/29/2020, 11:11 AMkotlinx.serialization
) and the generate bundle, once imported, is over 280KB (I have used source-map-explorer
to analyze it). Am I missing something ? a configuration or something. I have read some stuff around DCE but it seems to be already active in my project.James Mulholland
10/29/2020, 12:14 PMJames Mulholland
10/29/2020, 12:14 PMkotlin {
js(IR) { // <- New, more optimised compiler
// Js config...
}
}
Robert Jaros
10/29/2020, 12:33 PMJames Mulholland
10/29/2020, 12:34 PMAnthony Pages
10/29/2020, 1:25 PMjs(IR) {
browser {
webpackTask {
mode = org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig.Mode.PRODUCTION
sourceMaps = false
}
}
binaries.executable()
}
When I compare to react with his ~30KB, I think that 280 is huge, no ?
By code splitting you mean using specific code by platform and not all in common code ?Robert Jaros
10/29/2020, 2:51 PMNicholas Bilyk
10/29/2020, 2:51 PMaltavir
10/29/2020, 7:49 PMAnthony Pages
10/30/2020, 8:40 AMaltavir
10/30/2020, 9:12 AMChristian Dräger
10/31/2020, 8:04 PMAnthony Pages
11/02/2020, 8:45 AM