Is there any support for deferred loading for kotl...
# javascript
a
Is there any support for deferred loading for kotlin-js? It's important feature for big scale kotlin projects.
b
Right now it can be done by a linker (like webpack).
a
Thanks! Would be great have annotations for this.
t
Like Dart is planing to https://github.com/dart-lang/sdk/blob/master/docs/newsletter/20170804.md Also, could we have an example of how it's done with webpack? I'm fine with that if it works.
b
@Tristan Caron thank you, I’ll take a look to it
t
I don't see how this thing is possible in Kotlin. To make it work, we have to add a comment in the function
import
which will be removed once compiled. Also, I think kotlin will not allow to use a function that we did not import. If we import it, koltin will bundle it, and we won't be able to use the feature...