How can I produce an IIFE binary from Kotlin/JS wi...
# javascript
m
How can I produce an IIFE binary from Kotlin/JS with a default export?
t
Copy code
fun main() {
   // your start code
}
Doesn’t work in your case?
m
No, because I need to return a function from the entry point; in JS the equivalent would be
Copy code
(function(){ 
    function definePlugin(api) { ... }; 
    return definePlugin; 
})()
t
Custom JS adapter + webpack entry point reconfiguration?
m
The "best" solution I've found so far is to put it through a Copy task in gradle and put a filter() on the file, no clue what I'd need to set webpack to as I've tried every libraryTarget from the docs.