Krystian
09/15/2023, 2:07 PMKrystian
09/15/2023, 2:08 PMkotlin {
wasm {
binaries.executable()
browser {
commonWebpackConfig {
devServer = (devServer ?: KotlinWebpackConfig.DevServer()).copy(
open = mapOf(
"app" to mapOf(
"name" to "google chrome",
"arguments" to listOf("--js-flags=--experimental-wasm-gc")
)
),
static = (devServer?.static ?: mutableListOf()).apply {
// Serve sources to debug inside browser
add(project.rootDir.path)
},
)
}
// Uncomment the next line to apply Binaryen and get optimized wasm binaries
applyBinaryen()
}
}
Krystian
09/15/2023, 2:08 PMephemient
09/15/2023, 2:11 PMKrystian
09/15/2023, 2:17 PMKrystian
09/15/2023, 2:17 PMKrystian
09/15/2023, 2:17 PMKrystian
09/15/2023, 2:17 PMPablichjenkov
09/15/2023, 3:50 PMKrystian
09/15/2023, 3:59 PM