Doesn't this work? ``` external fun <T> imp...
# javascript
f
Doesn't this work?
Copy code
external fun <T> import(moduleName: String): Promise<T>
t
It works if I use others files than kotlin
f
Separate Kotlin modules (not packages) should compile to separate CommonJS modules
t
But you loose the typing, unless you also do a definition file
f
Yes, looks like you need a separate module with API definition for each lazy-loaded module in that case