I've found the problem. Calling main manually work...
# javascript
p
I've found the problem. Calling main manually works. I use gradle, and by default it passes main=nocall. Adding kotlinOptions.main="call" fixed the problem. The documentation was not that helpful (github was)