Hi, I’m writing a library targeting android and js...
# multiplatform
j
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