<@U0KGK0BUN> Today, some libraries are exposing th...
# javascript
d
@konsoletyper Today, some libraries are exposing things from modules using the default keyword (mainly when the code was written in ES6 or TypeScript). This force you to import like
require(”my-module”).default
. Today, kotlin will only map the module and not the extraction of what is inside, you will have to create additional structures to consume that module when that happens. The fable has done a nice work about this using attributes (just like kotlin is doing) but resolving this issue (http://fable.io/docs/interacting.html#Import-attribute). The JS world of today is a mess and, unfortunately, we have to deal with it.