Does anyone know a way to split the kotlin.js file...
# javascript
s
Does anyone know a way to split the kotlin.js file into multiple files? I'm trying to find a work-around for https://youtrack.jetbrains.com/issue/KT-22150
b
I think it’s impossible/hard to do it in a safe way, but you can build (from sources) special version of stdlib.jar w/o some parts or even build splitted version of stdlib. Then you can use these jars instead standard stdlib.
@caffeine did something like that some time ago, maybe he can share his experience
@spierce7 anyway, I’m ready to assist you if you like the idea.
s
@bashor I've already got the stdlib building from source. I did that a few days ago to change the moduleKind. What parts to you recommend splitting out? Also, just to check, I'm assuming that the DCE plugin isn't incremental, and it would be a bad idea to integrate DCE into our dev flow. I'm assuming that as the project grows, DCE would end up taking far too long. Would you agree?
I just re-read your original reply, and that seems very reasonable. I'm all ears. This seems like the best path to go forward with.