You’re right that thats what’s recommended. Howeve...
# javascript
a
You’re right that thats what’s recommended. However, a big sticking point for us when deciding whether or not to go with Kotlin was the size of the standard lib. Since we know with 100% certainty that our shared libraries are the only dependencies in our webapp that need the Kotlin Standard Library, we use DCE to strip down the kotlin.js dependency to only the parts we use ourselves. If Kotlin supported ES2015 style modules instead of ES5.1, Webpack would be able to treeshake it for us, but for now, this is the best we could do to keep the bundle size to a minimum.