https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

Justin Shapiro

03/02/2020, 7:24 PM
Hi, I’m writing a library targeting android and js. I’ve got the aar. Are there examples of running a bundler on the js output?
👀 1
So I used KaMPKit as my bootstrap so my tree looks like
Copy code
src
├── androidMain
├── androidTest
├── browserMain
├── commonMain
├── commonTest
├── iosMain
├── iosTest
├── jsMain
└── main
my config so far looks like
Copy code
js("browser") {
        val main by compilations.getting {
            kotlinOptions {
                outputFile = "${buildDir}/web/${project.parent?.name?.toLowerCase() ?: name}-browser.js"
                noStdlib = false
                moduleKind = "umd"
            }
        }
    }
so can I bundle here? or do people usually do a mulit project build and bundle elsewhere?
Same type of question being discussed in #javascript https://kotlinlang.slack.com/archives/C0B8L3U69/p1583228562114200
2 Views