Is it a filed/known issue that `wasmBrowserRun` ha...
# webassembly
j
Is it a filed/known issue that
wasmBrowserRun
hard codes a default browser exec of
google-chrome-canary
?
s
Not sure, but likely worth to fix on 1.8.20 Beta2 or RCs indeed.
b
You can change it in build.gradle.kts:
Copy code
browser {
            commonWebpackConfig {
                devServer = (devServer ?: KotlinWebpackConfig.DevServer()).copy(
                    open = mapOf(
                        "app" to mapOf(
                            "name" to "google chrome", // "edge"
                            "arguments" to listOf("--js-flags=--experimental-wasm-gc")
                        )
                    ),
                )
            }
        }
Like here: https://github.com/Kotlin/kotlin-wasm-examples/blob/main/browser-example/build.gradle.kts#L20-L27
Right it uses google chrome canary by default, would you prefer to use stable chrome by default? Feel free to file an issue.
j
Now that Chrome 110 is out, I think it can just use
google-chrome
- I'll file an issue.