Jorrit
08/25/2020, 5:19 PM@SomethingGoesHere?
external fun polyfilled(args: Int)
Using @JsModule("npmmodule") at least doesn't work, there's no require('npmmodule')
output the JS file. I can call require
manually but that doesn't seem like the right solution.Gunslingor
08/25/2020, 5:39 PMJorrit
08/25/2020, 6:14 PMGunslingor
08/25/2020, 6:16 PMJorrit
08/25/2020, 6:18 PMGunslingor
08/25/2020, 6:22 PMGunslingor
08/25/2020, 6:22 PMGunslingor
08/25/2020, 6:23 PMaraqnid
08/25/2020, 7:32 PMmain()
in a Javascript module, it will be executed when the compiled JS is loaded/imported, so you can stick arbitrary module setup code in there.araqnid
08/25/2020, 7:33 PMJorrit
08/25/2020, 8:21 PMprivate var something = js("require(...)")
That gets executed right before main() does, so covers my purposes for now.Jorrit
08/25/2020, 8:21 PM