Alex Styl
10/16/2025, 11:42 PMdistribution block, the composeApp.js and many other files are not included in the output
wasmJs {
browser {
distribution {
val rootDirPath = project.rootDir.path
outputDirectory = File("$rootDirPath/dist/${project.name}") // <-
}
}
binaries.executable()
}Alex Styl
10/16/2025, 11:49 PMwasmJs {
browser {
distribution {
val rootDirPath = project.rootDir.path
outputDirectory = File("$rootDirPath/dist/${project.name}")
}
val rootDirPath = project.rootDir.path
val projectDirPath = project.projectDir.path
commonWebpackConfig {
outputFileName = "composeApp.js"
devServer = (devServer ?: KotlinWebpackConfig.DevServer()).apply {
static = (static ?: mutableListOf()).apply {
// Serve sources to debug inside browser
add(rootDirPath)
add(projectDirPath)
}
}
}
}
binaries.executable()
}